-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Run the .py file immediately with parameters #461
Comments
Python stores command line parameters in sys.argv (list object). You can manipulate sys.argv before running the file. And PLEASE stop using the Issue Tracker for questions. |
Issue Tracker is on Github and was created to ask questions, what is the problem? |
No. The issue tracker is for reporting bugs. PLEASE don't use it to ask questions. |
Sorry, I don't have many questions, just a couple of questions. |
It’s a little unclear how it goes like this ?:
|
I'm getting errors for some reason
Invalid typecast |
Will this be right ?
ExecPythonFile(ExtractFilePath(ParamStr(0))+'pyscript\main.py, '-i -o -threads 10') |
No, it doesn’t work, and if only the first parameter one works, the rest are ignored =( |
Hello, please tell me how to correctly run a ready-made .py file via Python4Delphi if the file itself requires launching with some parameters, for example -h -u -i -o for example, I would like to do something like:
And usually I run this file like this:
python main.py --help
The text was updated successfully, but these errors were encountered: