X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos.py;h=1c52a0bfcd172e879432395fa3b8c91c2dfc0af7;hb=0c26b45fea2f58a6959b946af412a267fcb34f2e;hp=a8d4665091269c92ac7285def2e4e2eac687aa38;hpb=69dafce1e54be44e6c45deb813f6a08baeef9897;p=bertos.git diff --git a/wizard/bertos.py b/wizard/bertos.py index a8d46650..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,10 +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 + # 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") @@ -64,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