diff options
author | Karl Berry <karl@freefriends.org> | 2014-04-20 22:56:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-04-20 22:56:10 +0000 |
commit | ce5dd4137c8f88f9449e78ea4e02081bb589432e (patch) | |
tree | 1482a78c9484fb143211d3c1bb56d6c95f8393a1 /Build/source/utils/asymptote/GUI | |
parent | d7e9f3fbc05b16e08afeb5b2569cb39a9b03e661 (diff) |
asy 2.25 sources
git-svn-id: svn://tug.org/texlive/trunk@33565 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/GUI')
-rwxr-xr-x | Build/source/utils/asymptote/GUI/xasyCodeEditor.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/GUI/xasyCodeEditor.py b/Build/source/utils/asymptote/GUI/xasyCodeEditor.py index 93e06e447ee..1f7ad60328f 100755 --- a/Build/source/utils/asymptote/GUI/xasyCodeEditor.py +++ b/Build/source/utils/asymptote/GUI/xasyCodeEditor.py @@ -14,6 +14,7 @@ from subprocess import call from tempfile import mkstemp from os import remove from os import fdopen +from os import path from string import split import xasyOptions @@ -24,7 +25,12 @@ def getText(text=""): tempf.write(text) tempf.flush() try: - call(split(xasyOptions.options['externalEditor'])+[temp[1]]) + cmdpath,cmd = path.split(xasyOptions.options['externalEditor']) + split_cmd = split(cmd) + cmdpart = [path.join(cmdpath,split_cmd[0])] + argpart = split_cmd[1:]+[temp[1]] + arglist = cmdpart+argpart + call(arglist) except: raise Exception('Error launching external editor.') tempf.seek(0) |