Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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