Fix wizard rcc invocation for paths with spaces inside.
[bertos.git] / wizard / bertos.py
index 93f451c536e5b797009f8a5fb099476afb7f7e6f..3aa845f3be666061b5e3219ccfe7226bc382bd08 100755 (executable)
@@ -121,7 +121,7 @@ def main():
     datadir = DATA_DIR
     qrc, rcc = os.path.join(datadir, 'bertos.qrc'), os.path.join(datadir, 'bertos.rcc')
     if not (hasattr(sys, "frozen") and sys.frozen) and newer(qrc, rcc):
-        os.system("rcc -binary %s -o %s" %(qrc, rcc))
+        os.system("rcc -binary \"%s\" -o \"%s\"" %(qrc, rcc))
     QResource.registerResource(rcc)
     if len(sys.argv) == 3 and sys.argv[1] == "--edit":
         editProject(os.path.abspath(sys.argv[2]))