'How to run a python script with 3 parameters in command line
I got a task in the school without any database and program lines. My task is to write a run command in the command line with the following criteria.
I have a python script called (main.py) and 3 parameters in 3 different directories and files: c:\old_data c:\new_data .ini file (which contains region's names)
How to run the main.py in a command line with these 3 parameters, choosing one region (FNL) from the .ini file?
I did this: python c:\tool\main.py c:\old_data c:\new_data
Is it a good start? Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
