summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-11-11 15:40:45 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-11-11 15:40:45 (GMT)
commitd8597858a9ee4c51ef724cdfcc71fe2093ecaacd (patch)
tree94fa74f350610563a5fb6d3d0f9f31a24307493d /Mac
parent052b7e1cfb241b6154d38fd10815011e820f7f69 (diff)
downloadcpython-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')
-rw-r--r--Mac/Tools/twit/twit.py7
-rw-r--r--Mac/Tools/twit/twit.rsrc.hqx4
2 files changed, 9 insertions, 2 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
diff --git a/Mac/Tools/twit/twit.rsrc.hqx b/Mac/Tools/twit/twit.rsrc.hqx
index 5dc933e..a6a9a8f 100644
--- a/Mac/Tools/twit/twit.rsrc.hqx
+++ b/Mac/Tools/twit/twit.rsrc.hqx
@@ -2,7 +2,7 @@
:#A4hDA3ZFR0bB`"bFh*M8P0&4!%!N!HdV-5P!*!%!3!!!,)5!!#a%J!!!TS!!!$
`DIrr)"H6)!!#JH$`Drrr)"H8*!#3"2"[rrmJ#A4hDA3ZFR0bB`)!!!!rN!J!N!`
-rN!J!N"LZJ'B'!*!'Y+`!m(Errb!AR%3!N!6`Grrr)"HG5!#3"2"irrmJ&jj-!*!
+rN!J!N"LZUS!V!*!'Y+`!m(Errb!AR%3!N!6`Grrr)"HG5!#3"2"irrmJ&jj-!*!
%m(Rrrb!ARe!!N!6`H[rr)"HJ9!#3"2"lrrmJ&k&B!*!%m(crrf!ASP`!N!6`IIr
r)"HMB!#3"2#!rrmJ&k4N!*!&!rrr)"HPD!!#G#LrK2rr)"G2)!#3"#S!6!"S!AJ
#'J!%!3!"!*!&!J!99(GTG#!Y)%e[C(9XC5"LFQphFf9b!!!!,`!U!"!"``(8!!3
@@ -922,4 +922,4 @@ UD@0c)`!!!EC659T&!!!"`J)!N!88+3*%8Q`#!3!2!!!8Z`*%8R3#!`"I!!!5R!*
08h4KBfXJBR*[Gh0PFJe6G'&MDb"LFQphFf9b$Ne[C(9XC5"LFQphFf9b"8&bFQp
h#Q*bC@&VF'pTER3*3@*[GA3JBQpi#8&LEh9d)'*[H!P"BQpeG#"LEhJ16@pNG@a
P)'*bEhGcCA)08h4KBfXJBR*[Gh0PFJY@BA)JBR*[Gh0PFJj#FQphFf9b)(GTEQ4
-[G`j2GfjPFL"bCA0[GA*MCE8":
+[G`j2GfjPFL"bCA0[GA*MC8aE: