fixed problems with images on os x

This commit is contained in:
Jeena 2013-10-08 05:54:24 +02:00
parent cc0aee9510
commit ee3f4de6a5
5 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
Mac/Bungloo.app
Mac/bungloo
dsa_priv.pem
*.pyc

View file

@ -1,5 +1,6 @@
#!/bin/bash
rm -rf Bungloo.app
rm -rf bungloo
mkdir bungloo
cp -r ../Qt/* bungloo
@ -10,6 +11,6 @@ cp setup.py bungloo
cp Info.plist bungloo
cd bungloo
python setup.py py2app
#mv dist/Bungloo.app ..
mv dist/Bungloo.app ..
cd ..
#rm -rf bungloo
rm -rf bungloo

View file

@ -47,5 +47,3 @@ setup(
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
print os.path.dirname(PyQt4.__file__)

View file

@ -8,6 +8,8 @@ RUNNING_LOCAL = os.path.basename(sys.argv[0]) == "Bungloo.py"
RUNNING_ON_WINDOWS = os.name == "nt"
RUNNING_ON_OSX = _platform == "darwin"
print sys.argv[0]
if RUNNING_LOCAL or RUNNING_ON_WINDOWS:
import Windows, Helper, SingleApplication
else:

View file

@ -8,6 +8,7 @@ import json
class SingleApplication(QtGui.QApplication):
def __init__(self, argv, key):
self.bungloo = None
QtGui.QApplication.setGraphicsSystem("raster")
QtGui.QApplication.__init__(self, argv)
self._memory = QtCore.QSharedMemory(self)
self._memory.setKey(key)