You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to run WinPython Powershell with script argument ?
Normally powershell run with syntax like below. Somehow WinPython Powershell Prompt doesn't .
"D:\WPy64\WPy64\WPy64-31001\WinPython Powershell Prompt.exe" -noexit -file "D:\WPy64\WPy64\WPy64-31001\scripts\Script.ps1"
The text was updated successfully, but these errors were encountered:
I believe WinPython Powershell Prompt.exe is just a thin wrapper around the batch file scripts\WinPython_Interpreter_PS.bat, which in turn calls the Powershell script scripts\WinPython_PS_Prompt.ps1 to set up the environment. As such, any arguments that you pass don't reach Powershell at all. Instead, arguments to WinPython Powershell Prompt.exe would probably need to be handled by both the batch file and the Powershell script that's being used. I'm not a regular batch/Powershell user, so I don't know if it's possible or even desirable to modify the batch and Powershell scripts to handle pass-through arguments.
Assuming that you're trying to script this rather than manually invoke your script within Powershell, the easiest workaround may be to create a Powershell script that first calls the WinPython Powershell script and then your Powershell script.
How to run WinPython Powershell with script argument ?
Normally powershell run with syntax like below. Somehow WinPython Powershell Prompt doesn't .
"D:\WPy64\WPy64\WPy64-31001\WinPython Powershell Prompt.exe" -noexit -file "D:\WPy64\WPy64\WPy64-31001\scripts\Script.ps1"
The text was updated successfully, but these errors were encountered: