Template repository for projects on python
Go to file Use this template
2023-01-08 16:21:27 +03:00
.gitignore ignore IDE settings 2023-01-07 10:32:11 +03:00
LICENSE Initial commit 2023-01-07 10:24:29 +03:00
README.md add basic design 2023-01-08 16:16:31 +03:00
script.conf update template 2023-01-08 16:21:27 +03:00
script.py update template 2023-01-08 16:19:45 +03:00

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 ./procutil.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 .\procutil.py