4👍
You can do it this way:
- Right Click on the a .py file and go to Properties.
- Click “Change” on “Opens With” and browse for the location of your python executeable.
Suppose Python is installed in “D:\Program Files\Python\python.exe” then you need to key in
D:\Program Files\Python\python.exe "%1" %*
0👍
Why not try cx_Freeze? It freezes the document and makes it executable.
http://cx-freeze.sourceforge.net/
I love using it; it allows people who don’t have Python installed on their computers to run and execute the file.
- [Django]-Django Import Class From models.py
- [Django]-How can i generate a page dynamically in Django?
- [Django]-How do I html format my blog post in django?
Source:stackexchange.com