From a73a964e51247ed169d322c725a3a18859f109a3 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Mon, 14 Jun 2021 00:00:37 +0000 Subject: python, hg: tow outside the environment. they've served us well, and can ride off into the sunset. --- sys/lib/python/idlelib/idle.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 sys/lib/python/idlelib/idle.py (limited to 'sys/lib/python/idlelib/idle.py') diff --git a/sys/lib/python/idlelib/idle.py b/sys/lib/python/idlelib/idle.py deleted file mode 100644 index 537dd5a9a..000000000 --- a/sys/lib/python/idlelib/idle.py +++ /dev/null @@ -1,21 +0,0 @@ -try: - import idlelib.PyShell -except ImportError: - # IDLE is not installed, but maybe PyShell is on sys.path: - try: - import PyShell - except ImportError: - raise - else: - import os - idledir = os.path.dirname(os.path.abspath(PyShell.__file__)) - if idledir != os.getcwd(): - # We're not in the IDLE directory, help the subprocess find run.py - pypath = os.environ.get('PYTHONPATH', '') - if pypath: - os.environ['PYTHONPATH'] = pypath + ':' + idledir - else: - os.environ['PYTHONPATH'] = idledir - PyShell.main() -else: - idlelib.PyShell.main() -- cgit v1.2.3