X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos.py;h=1c52a0bfcd172e879432395fa3b8c91c2dfc0af7;hb=0c26b45fea2f58a6959b946af412a267fcb34f2e;hp=a6529abef39c70b16d644342f0ce253c1ae6a33d;hpb=df2795a44344fbb1a9cec920115e155cefcfb2fc;p=bertos.git diff --git a/wizard/bertos.py b/wizard/bertos.py index a6529abe..1c52a0bf 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,9 +52,11 @@ 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"): os.system("rcc -binary bertos.qrc -o bertos.rcc") QResource.registerResource("bertos.rcc") @@ -63,7 +65,7 @@ def main(): elif "--edit" in sys.argv and "--create" not in sys.argv: editProject() elif "--create" in sys.argv and "--edit" in sys.argv: - ## TODO: need an explaining message + # TODO need an explaining message print " ".join(sys.argv) print "Invalid usage!" pass