fixed problems with linux deploy

This commit is contained in:
jeena 2013-04-17 11:52:27 +02:00
parent 6db4ee634b
commit c5d7c7d0a0
5 changed files with 15 additions and 5 deletions

View file

@ -12,7 +12,10 @@ import array
class Helper:
@classmethod
def get_resource_path(cls):
return os.path.dirname(sys.argv[0])
if os.name == "nt":
return os.path.dirname(sys.argv[0])
else:
return os.path.dirname(__file__)
class WebPage(QtWebKit.QWebPage):
def __init__(self, parent=0, app=None):