summaryrefslogtreecommitdiff
path: root/src/python/stdlib/plat-mac/appletrunner.py
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
commite46ef289e142982d7bd592faa7b0f85470364c01 (patch)
treecda253e03788f7db0a7cdcd05662f66b4455e298 /src/python/stdlib/plat-mac/appletrunner.py
parentd0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff)
downloadpowder-e46ef289e142982d7bd592faa7b0f85470364c01.zip
powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/plat-mac/appletrunner.py')
-rwxr-xr-xsrc/python/stdlib/plat-mac/appletrunner.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/python/stdlib/plat-mac/appletrunner.py b/src/python/stdlib/plat-mac/appletrunner.py
deleted file mode 100755
index cdfd417..0000000
--- a/src/python/stdlib/plat-mac/appletrunner.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env python
-# This file is meant as an executable script for running applets.
-# BuildApplet will use it as the main executable in the .app bundle if
-# we are not running in a framework build.
-
-from warnings import warnpy3k
-warnpy3k("In 3.x, the appletrunner module is removed.", stacklevel=2)
-
-import os
-import sys
-for name in ["__rawmain__.py", "__rawmain__.pyc", "__main__.py", "__main__.pyc"]:
- realmain = os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])),
- "Resources", name)
- if os.path.exists(realmain):
- break
-else:
- sys.stderr.write("%s: cannot find applet main program\n" % sys.argv[0])
- sys.exit(1)
-sys.argv.insert(1, realmain)
-os.execve(sys.executable, sys.argv, os.environ)