diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 13:38:28 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 13:38:28 (GMT) |
commit | 8bf053feade9c854a6c351d1d892c3cf78413f36 (patch) | |
tree | 53cd7ae90d5c69ce91b54f9af53b911a94e28d63 /Mac/Unsupported/run.py | |
parent | bb3e4cb14b8d2e78ae1f670dfff7b271ded33fde (diff) | |
download | cpython-8bf053feade9c854a6c351d1d892c3cf78413f36.zip cpython-8bf053feade9c854a6c351d1d892c3cf78413f36.tar.gz cpython-8bf053feade9c854a6c351d1d892c3cf78413f36.tar.bz2 |
It was an old MacPython artefact that these files were still in the source
tree. Removed them, anyone really desparate to recover them can get them
from the CVS repository.
Diffstat (limited to 'Mac/Unsupported/run.py')
-rw-r--r-- | Mac/Unsupported/run.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Mac/Unsupported/run.py b/Mac/Unsupported/run.py deleted file mode 100644 index 75c6129..0000000 --- a/Mac/Unsupported/run.py +++ /dev/null @@ -1,41 +0,0 @@ -# Script (applet) to run any Python command - -def main(): - import sys - sys.stdout = sys.stderr - del sys.argv[:1] - if not sys.argv: - import macfs - srcfss, ok = macfs.StandardGetFile('TEXT') - if not ok: - return - filename = srcfss.as_pathname() - sys.argv.append(filename) - import __main__ - try: - execfile(sys.argv[0], __main__.__dict__) - except SystemExit, msg: - if msg: - message("Exit status: %s" % str(msg)) - print "exit", `msg` - #sys.exit(msg) - except: - etype = sys.exc_type - if hasattr(etype, "__name__"): etype = etype.__name__ - message("%s: %s" % (etype, sys.exc_value)) - print "exit 1" - #sys.exit(1) - -def message(str = "Hello, world!", id = 256): - from Carbon import Dlg - d = Dlg.GetNewDialog(id, -1) - if not d: - print str - return - tp, h, rect = d.GetDItem(2) - Dlg.SetIText(h, str) - while 1: - n = Dlg.ModalDialog(None) - if n == 1: break - -main() |