Closed tokejepsen closed 8 months ago
This would break openpype/ayon-core logic to launch ayon subprocess.
This would break openpype/ayon-core logic to launch ayon subprocess.
Could you elaborate so I can test and find a solution? Is it when using the tray?
Could you elaborate so I can test and find a solution? Is it when using the tray?
You can't use get_ayon_launch_args
(or legacy get_openpype_launch_args
) in the script with this change. And the first argument is executable path, when used from build.
Ok, will close and do this in the python script instead.
It can be done, but more carefully. Will create PR when I'll find some time. You can use ayon run <script>
for the time being.
Changelog Description
When running python script that uses argparse, the extra argument of the
start.py
file messes up the parsing.Testing notes:
def main():
Create ArgumentParser object
if name == "main": main()
.\tools\manage.ps1 run C:\Users\tokejepsen\Desktop\temp.py --something else
usage: start.py [-h] --something SOMETHING start.py: error: unrecognized arguments: C:\Users\tokejepsen\Desktop\temp.py