my_route/README.md
2023-08-17 20:52:55 +03:00

896 B

template-python

Template repository for projects on python


script.py

Description:

returning current username if privileged rights are exist
or
returning error, if privileged rights are not exist

Dependencies:

  • Python 3 (tested version 3.9.5)
PARAMETERS DESCRIPTION DEFAULT
[-s,--show] "" - execution with pauses.
"qn" - execution without pauses.
[-c,--conf] path to configuration file ./script.conf

Example usage in terminal with Python on Linux:

python3 ./script.py

Example usage in terminal with make the script executable on Linux:

chmod u+x ./script.py
script.py -s qn -c ./script.conf

Example usage in terminal with Python on Windows:

python .\script.py