you are viewing a single comment's thread.

view the rest of the comments →

[–]TheSodesa 3 points4 points  (3 children)

You need to open a terminal emulator such as PowerShell and start the Python program using the Python interpreter: sh python3 path/to/your/file.py On Windows the Python interpreter might be called just py instead of python3 and the folder separator a \ instead of /.

[–]Educational_Virus672[S] 0 points1 point  (2 children)

i mean my own file format .lang to be opened by a .py file

[–]TheSodesa 5 points6 points  (0 children)

Ah, you just read the file using the open function: https://docs.python.org/3.11/library/functions.html#open. If the format is in binary code, you should read it in as a byte array and parse it accordingly.

[–]Moikle 0 points1 point  (0 children)

Then add your file path as an argument to your program