Skip to content

Commit aaaa426

Browse files
Robin-K-Lynntlecomte
authored andcommitted
Remaining arguments consumed by QApplication
1 parent 89d2c16 commit aaaa426

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

friture/analyzer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ def main():
368368
action="store_true",
369369
help="Disable the splash screen on startup")
370370

371-
program_arguments = parser.parse_args()
371+
program_arguments, remaining_arguments = parser.parse_known_args()
372+
remaining_arguments.insert(0, sys.argv[0])
372373

373374
# make the Python warnings go to Friture logger
374375
logging.captureWarnings(True)
@@ -429,7 +430,7 @@ def main():
429430
except:
430431
logger.error("Could not set the app model ID. If the plaftorm is older than Windows 7, this is normal.")
431432

432-
app = QApplication(sys.argv)
433+
app = QApplication(remaining_arguments)
433434

434435
if platform.system() == "Darwin":
435436
logger.info("Applying Mac OS-specific setup")

0 commit comments

Comments
 (0)