Attachments you submit will be routed for moderation. If you have an account, please log in first.

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

File move-to-current-dir-before-start.patch, 0.5 KB (added by rgs, 3 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  
    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