Description of your problem
It happens when i use the interactive mode. I got error message as below:
'C:\Users\***\AppData\Local\Programs\Microsoft' is not recognized as an internal or external command,
operable program or batch file.
ERROR:
(I omit my account info using ***.)
Same error happens on both powershell and cmd.
Please provide a minimal, self-contained, and reproducible example.
I try to locate the error, so i make a py script. It's part of the open file with editor. I got a familiar error.
from pyscaffold.shell import *
from pyscaffold import file_system
with file_system.tmpfile(prefix="pyscaffold-", suffix=".args.sh") as file:
content = edit(file).read_text("utf-8")
It seems the space in vscode path ruin the function get_executable() in shell.py.
Please provide any additional information below.
I'm not sure whether it's my computer's problem. But when i change line 157 in shell.py from
to
There is no error.
And I wonder if the function get_excutable() could deal with any space in path of env, editor or any other commands.
Versions and main components
- PyScaffold Version: 4.0.1
- Python Version: not specified
- Operating system: Win10
- How did you install PyScaffold: conda
Description of your problem
It happens when i use the interactive mode. I got error message as below:
'C:\Users\***\AppData\Local\Programs\Microsoft' is not recognized as an internal or external command, operable program or batch file. ERROR:(I omit my account info using ***.)
Same error happens on both powershell and cmd.
Please provide a minimal, self-contained, and reproducible example.
I try to locate the error, so i make a py script. It's part of the open file with editor. I got a familiar error.
It seems the space in vscode path ruin the function
get_executable()inshell.py.Please provide any additional information below.
I'm not sure whether it's my computer's problem. But when i change line 157 in
shell.pyfromto
There is no error.
And I wonder if the function
get_excutable()could deal with any space in path of env, editor or any other commands.Versions and main components