A file can be executed from the terminal using
./filename.py
by typing a special command in the beginning of the filename.
./filename.py
by typing a special command in the beginning of the filename.
The very first byte of the file must start with a # symbol followed by a !,followed by the path.
For eg,
#!/usr/bin/python






0 comments:
Post a Comment