Commits

Brendan Howell committed 15424d6

fixes for mac paths

Comments (0)

Files changed (2)

 #!/bin/bash
 #cxfreeze-2.6 pycessing.py --target-dir Pycessing.app --icon=./icons/app-icon_48x48x32.png
 rm -rf build dist
-python setup.py py2app --resources icons,examples,help --iconfile icons/app-icon.icns
+python setup.py py2app --resources pycessing --iconfile pycessing/data/icons/app-icon.icns
 cp -r /opt/local/lib/Resources/qt_menu.nib dist/pycessing.app/Contents/Resources/
-cp *.py dist/pycessing.app/Contents/Resources/
-cp freesansbold.ttf dist/pycessing.app/Contents/Resources/
+#cp *.py dist/pycessing.app/Contents/Resources/
+#cp freesansbold.ttf dist/pycessing.app/Contents/Resources/
-#!/usr/bin/python
+#!/usr/bin/env python
 """
     pycessing
     Copyright 2009 Brendan Howell (brendan@howell-ersatz.com)
 
 # If running from inside source directory, add in-source module to path
 file_loc = os.path.dirname(__file__)
+file_loc = os.path.abspath(file_loc)
 if file_loc.endswith('scripts'):
     sys.path.insert(0, os.path.abspath(os.path.join(file_loc, '..')))
 
+
 from pycessing import mainwindow
 
 def main():