컴퓨터/Python
python vscode subprocess powershell unauthorized
풍경소리^^
2023. 11. 17. 11:19
unable to execute powershell script using python process but the same works in cmd line
i have a powershell script i'm trying to execute via python subprocess. i use check_output imported from subprocess for other cmd line processes, so i am using it for the powershell script. inside my
stackoverflow.com
import subprocess
subprocess.Popen(['powershell.exe', "-ExecutionPolicy", "unrestricted", r"B:\python\jupyternotebook\pandas_엑셀투파이썬\test.ps1"])
https://www.youtube.com/watch?v=GLyPvCS4Zew&list=PLDAF4b3hGb-FgRJC-mGxc0cNsRVE8FyH6