fixed problems with linux deploy
This commit is contained in:
parent
6db4ee634b
commit
c5d7c7d0a0
5 changed files with 15 additions and 5 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue