-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Labels
Milestone
Description
Environment
- Python 3.6.5
- click 6.7
- Windows 7
When using click.edit(), an editor with a space in the path throws an error. For example : "C:\Program Files\Sublime Text 3\sublime_text.exe"
If I put quotes around the path name in the subprocess.Popen call here the problem is fixed.
Before
c = subprocess.Popen('%s "%s"' % (editor, filename),
env=environ, shell=True)After
c = subprocess.Popen('"%s" "%s"' % (editor, filename),
env=environ, shell=True)Reactions are currently unavailable