From 0a3a5041f2d12af7394fb3ce6e2272024bf3d644 Mon Sep 17 00:00:00 2001 From: Raúl Gutiérrez S Date: Wed, 08 Sep 2010 13:29:51 +0000 Subject: Fix #2293: can't resume projects by double-clicking in Gnome --- 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 -- cgit v0.9.1