wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.3k stars 705 forks source link

How did you create executable that is readable in Python? #668

Closed chimd715 closed 1 year ago

chimd715 commented 2 years ago

/bin/autojump file is executable, but also readable file. It's in Python. I've used pyinstaller and the executable file is not readable. I am wondering how did you create executable that is readable in Python. I would really appreciate your answer. Thanks.

ThePython10110 commented 1 year ago

You can run python <filename>, even if <filename> doesn't end in .py. In other words, the .py extension isn't necessary for it to be runnable, it just tells the computer that it's a Python file.

And in UNIX, any file can be marked as executable.

This was probably done so that when trying to run the autojump command, it will run autojump.bat or autojump.sh or whatever instead of the autojump file.