Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chimd715 opened this issue Nov 28, 2022 · 1 comment
Closed

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

chimd715 opened this issue Nov 28, 2022 · 1 comment

Comments

@chimd715
Copy link

/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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants