Just simply compile *.py to *.pyc
python compiler.py main.py
python compiler.py program_directory
Using -h
flag to show more detail about arguments
Using pyc
file instead of py
file.
Example: After compile hello.py
to hello.pyc
, we using this command to run the script.
python hello.pyc