diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-11-11 15:40:45 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-11-11 15:40:45 (GMT) |
commit | d8597858a9ee4c51ef724cdfcc71fe2093ecaacd (patch) | |
tree | 94fa74f350610563a5fb6d3d0f9f31a24307493d /Mac/Tools/twit/twit.py | |
parent | 052b7e1cfb241b6154d38fd10815011e820f7f69 (diff) | |
download | cpython-d8597858a9ee4c51ef724cdfcc71fe2093ecaacd.zip cpython-d8597858a9ee4c51ef724cdfcc71fe2093ecaacd.tar.gz cpython-d8597858a9ee4c51ef724cdfcc71fe2093ecaacd.tar.bz2 |
Add twit "home" location to sys.path (so you can put the applet on the
desktop)
Diffstat (limited to 'Mac/Tools/twit/twit.py')
-rw-r--r-- | Mac/Tools/twit/twit.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/Tools/twit/twit.py b/Mac/Tools/twit/twit.py index 9db908e..6c6bad4 100644 --- a/Mac/Tools/twit/twit.py +++ b/Mac/Tools/twit/twit.py @@ -11,6 +11,13 @@ main program: nothing but a bit of glue to put it all together. Jack Jansen, CWI, August 1996.""" import os +import sys + +# Add our directory to path, if needed +dirname = os.path.split(__file__)[0] +if not dirname in sys.path: + sys.path.append(dirname) + if os.name == 'mac': import MacOS MacOS.splash(515) # Try to show the splash screen |