Changeset b18ca97eac6c…
Parent dfe17fdfa5bd…
by
Changes to one file · Browse files at b18ca97eac6c Showing diff from parent dfe17fdfa5bd Diff from another changeset...
@@ -138,8 +138,12 @@
cmdline = util.quotecommand(cmdline)
try:
+ try:
+ cwd = os.path.dirname(files[0])
+ except:
+ cwd = repo.root
subprocess.Popen(cmdline, shell=True, creationflags=openflags,
- stderr=None, stdout=None, stdin=None, cwd=repo.root)
+ stderr=None, stdout=None, stdin=None, cwd=cwd)
except (OSError, EnvironmentError), e:
QMessageBox.warning(parent,
_('Editor launch failure'),
|
Loading...