Commits

Josh VanderLinden committed 4bf60f1

Updated the main() function to "cd" to the project's directory, so we can use images.

  • Participants
  • Parent commits 65ad5b4

Comments (0)

Files changed (1)

File treedo/treedo.py

 # -*- coding: utf-8 -*-
 
 __author__ = 'Josh VanderLinden'
-__appname__ = 'TreeDo'
 __version__ = '0.2'
 
 def main():
     from gui import TreeDoFrame
     import gettext
+    import os
     import wx
     gettext.install('treedo')
 
+    # change to the project's directory, so we can use our images
+    dirname = os.path.abspath(os.path.dirname(__file__))
+    os.chdir(dirname)
+
     treedo = wx.PySimpleApp()
     frame = TreeDoFrame()
     treedo.SetTopWindow(frame)