Skip to content

Commit 40e9405

Browse files
committed
Remaining arguments consumed by QApplication
1 parent aaccddf commit 40e9405

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
@@ -363,7 +363,8 @@ def main():
363363
action="store_true",
364364
help="Disable the splash screen on startup")
365365

366-
program_arguments = parser.parse_args()
366+
program_arguments, remaining_arguments = parser.parse_known_args()
367+
remaining_arguments.insert(0, sys.argv[0])
367368

368369
# make the Python warnings go to Friture logger
369370
logging.captureWarnings(True)
@@ -424,7 +425,7 @@ def main():
424425
except:
425426
logger.error("Could not set the app model ID. If the plaftorm is older than Windows 7, this is normal.")
426427

427-
app = QApplication(sys.argv)
428+
app = QApplication(remaining_arguments)
428429

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

0 commit comments

Comments
 (0)