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
@task
def repro(ctx):
import tempfile
d = tempfile.mkdtemp(prefix="with space")
with ctx.cd(d):
ctx.run("whoami")
output
The system cannot find the path specified.
debug output
The system cannot find the path specified.
invoke.program.run: Received a possibly-skippable exception: <UnexpectedExit: cmd='cd C:\\Users\\BRANDE~1.CLA\\AppData\\Local\\Temp\\with\\ spacekk8c0niv && whoami' exited=1>
it looks like ctx.cwd improperly escapes the whitespace for Windows by adding a backslash. If using the cd command this way the path should be enclosed in double quotes. Why do you use the cd command instead of the cwd parameter to subprocess.Popen?
The text was updated successfully, but these errors were encountered:
example
output
debug output
it looks like ctx.cwd improperly escapes the whitespace for Windows by adding a backslash. If using the
cd
command this way the path should be enclosed in double quotes. Why do you use thecd
command instead of thecwd
parameter tosubprocess.Popen
?The text was updated successfully, but these errors were encountered: