Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux app launcher fails gracefully #45

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion app_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@ def main(input_json_path):

if __name__ == "__main__":
# Expect that last argument is path to a json with launch args information
main(sys.argv[-1])
json_path = sys.argv[-1]
if os.path.splitext(json_path)[1].lower() != ".json":
print((
"App launcher expects json file as last argument."
"\nNote: 'app_launcher' is not an executable of AYON launcher."
" Use 'ayon' instead."
))
sys.exit(1)

main(json_path)