Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bylotonix/idle2exe
IDLE от Python, запакованный в .exe
https://github.com/bylotonix/idle2exe
exe idle mod python python-mod python3
Last synced: about 2 months ago
JSON representation
IDLE от Python, запакованный в .exe
- Host: GitHub
- URL: https://github.com/bylotonix/idle2exe
- Owner: ByloTonix
- Created: 2021-06-07T10:14:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T14:04:16.000Z (about 1 year ago)
- Last Synced: 2023-11-29T15:28:31.505Z (about 1 year ago)
- Topics: exe, idle, mod, python, python-mod, python3
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
"Hack" for opening .py files by double-clicking.
By default .py files have an association with pythonw.exe, that makes it impossible to edit files of this format via IDLE without having to use right-click --> Edit with IDLE. Below is a "solution" that corrects this behavior.
## Solution:
- In the directory with Python installed, you need to find the directory **\Lib\idlelib**, which contains the file **idle.bat**. In it, you need to replace **CurrentDir** with direct paths to **pythonw.exe ** and **idle.pyw** (1st - in the folder **\Lib**, 2nd - in **\Lib\idlelib**).To convert **.bat** to **.exe**, you can use the program from **[Tokyoneon](https://github.com/tokyoneon/B2E)**. The icon can be taken from **\Lib\idlelib\Icons**.
Using the above utility, we convert the edited **idle.bat** in **idle.exe**## Usage:
- After creating the **.exe file**, save it in a convenient place and create a new association of .py files with this .exe (via "Open with" menu)