14 lines
284 B
Python
Executable File
14 lines
284 B
Python
Executable File
#! /usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
from idlelib import IdleConf
|
|
|
|
idle_dir = os.path.dirname(IdleConf.__file__)
|
|
IdleConf.load(idle_dir)
|
|
|
|
# defer importing Pyshell until IdleConf is loaded
|
|
from idlelib import PyShell
|
|
# open a shell instead of an editor window
|
|
PyShell.main(0)
|