Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleart.py
diff options
context:
space:
mode:
authorRaúl Gutiérrez S <rgs@rieder.net.py>2010-09-08 13:29:51 (GMT)
committer Raúl Gutiérrez S <rgs@rieder.net.py>2010-09-08 13:29:51 (GMT)
commit0a3a5041f2d12af7394fb3ce6e2272024bf3d644 (patch)
tree1effc6038c3dcd8e6baedf6842c26f0733ad874d /turtleart.py
parent138a327cf363f7c905f8c466a50ecabf1d0b6dbe (diff)
Fix #2293: can't resume projects by double-clicking in Gnome
Diffstat (limited to 'turtleart.py')
-rwxr-xr-xturtleart.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/turtleart.py b/turtleart.py
index b655449..32eec11 100755
--- a/turtleart.py
+++ b/turtleart.py
@@ -116,6 +116,10 @@ class TurtleMain():
def __init__(self):
""" Parse command-line options and initialize class """
+ # If we are invoked to start a project from Gnome, we should make
+ # sure our current directory is TA's source dir.
+ os.chdir(os.path.dirname(__file__))
+
self.ta_file = None
self.output_png = False
self.uploading = False