Ticket #2293: move-to-current-dir-before-start.patch

File move-to-current-dir-before-start.patch, 518 bytes (added by rgs, 14 years ago)

move to cur dir before running the main loop

  • turtleart.py

    diff --git a/turtleart.py b/turtleart.py
    index b655449..32eec11 100755
    a b class TurtleMain(): 
    116116    def __init__(self):
    117117        """ Parse command-line options and initialize class """
    118118
     119        # If we are invoked to start a project from Gnome, we should make
     120        # sure our current directory is TA's source dir.
     121        os.chdir(os.path.dirname(__file__))
     122
    119123        self.ta_file = None
    120124        self.output_png = False
    121125        self.uploading = False