Commit 5238365d authored by Andrey Moiseev's avatar Andrey Moiseev Committed by Tim-Philipp Müller
Browse files

gst-env: Windows: Fix looking for cmd_or_ps.ps1 in the wrong directory

At the point of get_windows_shell() execution, the current directory
equals DEFAULT_BUILDDIR=./build. But cmd_or_ps.ps1 is in SCRIPTDIR=./
(repo root). Point subprocess.check_output() to the correct directory.

Part-of: <!239>
parent 0d232859
Pipeline #296203 waiting for manual action with stages
in 29 seconds
......@@ -442,7 +442,7 @@ def get_subprocess_env(options, gst_version):
def get_windows_shell():
command = ['powershell.exe' ,'-noprofile', '-executionpolicy', 'bypass', '-file', 'cmd_or_ps.ps1']
result = subprocess.check_output(command)
result = subprocess.check_output(command, cwd=SCRIPTDIR)
return result.decode().strip()
if __name__ == "__main__":
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment