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

Does it support command line arguments? #8

Open
Maruchero opened this issue Oct 28, 2023 · 1 comment
Open

Does it support command line arguments? #8

Maruchero opened this issue Oct 28, 2023 · 1 comment

Comments

@Maruchero
Copy link

This is my batch script:

@echo off
python %APPDATA%"\pdviewer\pdviewer.py" %1
pause

The python file should take the first argument and process it but it gives the error:

file_path = sys.argv[1]
IndexError: list index out of range
@Okmeque1
Copy link

No, tested it on this script :

call C:\N1\BAT\!SM122.BAT %1
exit /b

and the %1 variable works in the script but not in the finished EXE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants