summaryrefslogtreecommitdiff
path: root/graphics/asymptote/GUI/xasy2asy.py
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/GUI/xasy2asy.py')
-rw-r--r--graphics/asymptote/GUI/xasy2asy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/asymptote/GUI/xasy2asy.py b/graphics/asymptote/GUI/xasy2asy.py
index 2df6c3417a..4b2d0274f7 100644
--- a/graphics/asymptote/GUI/xasy2asy.py
+++ b/graphics/asymptote/GUI/xasy2asy.py
@@ -775,6 +775,8 @@ class xasyItem(Qc.QObject):
worker = threading.Thread(target=self.asyfyThread, args=[])
worker.start()
item = self.imageHandleQueue.get()
+ cwd=os.getcwd();
+ os.chdir(self.asyengine.tempDirName)
while item != (None,) and item[0] != "ERROR":
if item[0] == "OUTPUT":
print(item[1])
@@ -790,6 +792,8 @@ class xasyItem(Qc.QObject):
pass
item = self.imageHandleQueue.get()
# self.imageHandleQueue.task_done()
+ os.chdir(cwd);
+
worker.join()
def asyfyThread(self):