WindmillWWindmill
Powered by
DannlyD
Windmill•2y ago•
8 replies
Dannly

Sourcing PowerShell scripts from other PowerShell scripts

There's a PowerShell script A, created using Windmill's web IDE, and another PowerShell script B, both in the same folder. There are some functions defined in A that I wish to use in B. However, I can't seem to properly source them (PowerShell can't find the module file). I've tried
Import-Module ./A.ps1
Import-Module ./A.ps1
,
Import-Module /f/folder/A
Import-Module /f/folder/A
,
./A.ps1
./A.ps1
,
Import-Module /f/folder/A.ps1
Import-Module /f/folder/A.ps1
, to no avail. Using a similar notation in Python, however, seems to work perfectly fine, suggesting that it's some issue particular to PowerShell. Any ideas?
Thank you in advance!
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Using outputs from scripts as inputs
AnyaAAnya / help
12mo ago
Scripts missing from flow after update
D3SLDD3SL / help
2y ago
Scripts, variables, resources disappeared from web interface
finaleFfinale / help
6mo ago
How to write windmill variables from scripts
AngadAAngad / help
3y ago