created a deployment script for packing bungloo packages

This commit is contained in:
ckruse 2013-02-27 00:10:27 +01:00
parent 8c509ad6b5
commit 9c36ef3785
4 changed files with 54 additions and 3 deletions

View file

@ -2,7 +2,11 @@
import os, sys, pickle, subprocess
from PyQt4 import QtCore, QtGui, QtWebKit
import Windows, Helper
if __file__ == 'Bungloo.py':
import Windows, Helper
else:
from bungloo import Windows, Helper
import shutil
@ -25,7 +29,10 @@ class Bungloo:
self.app.exec_()
def resources_path(self):
return os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if __file__ == 'Bungloo.py':
return os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
else:
return Helper.Helper.get_resource_path()
def resources_uri(self):
return "file://localhost" + os.path.abspath(os.path.join(self.resources_path(), "WebKit"))