summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/GUI
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-16 18:38:18 +0000
committerKarl Berry <karl@freefriends.org>2010-05-16 18:38:18 +0000
commit9b042a93e8f489c694af2e2e121e5aedd7671d8a (patch)
tree4b4e6b79f46eb1faf6b5ca4b5318ae907daf38bc /Master/texmf/asymptote/GUI
parent165b3785f8aa3ff267097b479870e9a39ba5c14b (diff)
asymptote 1.94
git-svn-id: svn://tug.org/texlive/trunk@18288 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/GUI')
-rwxr-xr-xMaster/texmf/asymptote/GUI/xasy2asy.py4
-rwxr-xr-xMaster/texmf/asymptote/GUI/xasyMainWin.py9
-rwxr-xr-xMaster/texmf/asymptote/GUI/xasyVersion.py2
3 files changed, 9 insertions, 6 deletions
diff --git a/Master/texmf/asymptote/GUI/xasy2asy.py b/Master/texmf/asymptote/GUI/xasy2asy.py
index 99a747cccda..a86a1e732d1 100755
--- a/Master/texmf/asymptote/GUI/xasy2asy.py
+++ b/Master/texmf/asymptote/GUI/xasy2asy.py
@@ -54,8 +54,8 @@ def startQuickAsy():
AsyTempDir=mkdtemp(prefix="asy_", dir="./")
else:
AsyTempDir=mkdtemp(prefix="asy_")+os.sep
- quickAsy = Popen([xasyOptions.options['asyPath']]+
- split("-noV -multiline -interactive -o"+AsyTempDir),
+ quickAsy = Popen([xasyOptions.options['asyPath'],"-noV","-multiline",
+ "-interactive","-o"+AsyTempDir],
stdin=PIPE,stdout=PIPE,stderr=STDOUT)
if quickAsy.returncode != None:
quickAsyFailed = True
diff --git a/Master/texmf/asymptote/GUI/xasyMainWin.py b/Master/texmf/asymptote/GUI/xasyMainWin.py
index 0a1ddc63e36..95dd4fb7cbc 100755
--- a/Master/texmf/asymptote/GUI/xasyMainWin.py
+++ b/Master/texmf/asymptote/GUI/xasyMainWin.py
@@ -144,6 +144,7 @@ class xasyMainWin:
self.exportMenu.add_command(label="PDF...",command=self.exportPDF,underline=0)
self.exportMenu.add_command(label="GIF...",command=self.exportGIF,underline=0)
self.exportMenu.add_command(label="PNG...",command=self.exportPNG,underline=1)
+ self.exportMenu.add_command(label="SVG...",command=self.exportSVG,underline=0)
self.fileMenu.add_cascade(label="Export",menu=self.exportMenu,underline=1)
self.fileMenu.add_separator()
@@ -720,6 +721,9 @@ class xasyMainWin:
def exportPNG(self):
self.exportFile(self.filename,"png")
+ def exportSVG(self):
+ self.exportFile(self.filename,"svg")
+
def exportFile(self,inFile, outFormat):
if(not self.testOrAcquireLock()):
return
@@ -743,9 +747,8 @@ class xasyMainWin:
return
fullname = os.path.abspath(outfilename)
outName = os.path.basename(outfilename)
- dirname = os.path.dirname(fullname)
- command = xasyOptions.options['asyPath']+" -f %s -o %s %s"%(outFormat,fullname,inFile)
- saver = subprocess.Popen(split(command),stdin=PIPE,stdout=PIPE,stderr=PIPE)
+ command=[xasyOptions.options['asyPath'],"-f"+outFormat,"-o"+fullname,inFile]
+ saver = subprocess.Popen(command,stdin=PIPE,stdout=PIPE,stderr=PIPE)
saver.wait()
if saver.returncode != 0:
tkMessageBox.showerror("Export Error","Export Error:\n"+saver.stdout.read()+saver.stderr.read())
diff --git a/Master/texmf/asymptote/GUI/xasyVersion.py b/Master/texmf/asymptote/GUI/xasyVersion.py
index c1a6f3f54eb..17f9f0aadf1 100755
--- a/Master/texmf/asymptote/GUI/xasyVersion.py
+++ b/Master/texmf/asymptote/GUI/xasyVersion.py
@@ -1,2 +1,2 @@
#!/usr/bin/env python
-xasyVersion = "1.88"
+xasyVersion = "1.94"