X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=wizard%2Fbertos.py;h=f178a0a04174db2adf2ee7515afdcc55dd212952;hb=87bbb18b93461ad7889de3a1e918e930ddf9cc7f;hp=87b08237fa02e43ddad363b4eb0a1fc88644c422;hpb=d33cc3bc1a94318cdf7624edb613eb6771a2fcb9;p=bertos.git diff --git a/wizard/bertos.py b/wizard/bertos.py index 87b08237..f178a0a0 100755 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -1,10 +1,10 @@ -#!/usr/bin/env python +#!/usr/bin/env python # encoding: utf-8 # # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # All rights reserved. # -# $Id:$ +# $Id$ # # Author: Lorenzo Berni # @@ -52,11 +52,12 @@ def showStartPage(): QApplication.instance().dialog.show() def main(): + os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) app = QApplication(sys.argv) app.settings = QSettings("Develer", "Bertos Configurator") app.project = BProject.BProject() # Development utility lines, to be removed for production - if newer("bertos.qrc", "bertos.rcc"): + if not (hasattr(sys, "frozen") and sys.frozen) and newer("bertos.qrc", "bertos.rcc"): os.system("rcc -binary bertos.qrc -o bertos.rcc") QResource.registerResource("bertos.rcc") if "--create" in sys.argv and "--edit" not in sys.argv: