]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add twit "home" location to sys.path (so you can put the applet on the
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 11 Nov 1996 15:40:45 +0000 (15:40 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 11 Nov 1996 15:40:45 +0000 (15:40 +0000)
desktop)

Mac/Tools/twit/twit.py
Mac/Tools/twit/twit.rsrc.hqx

index 9db908e32c86ce15b16ba3b04e1bed974c2913c9..6c6bad4d2de1b8331daa6af89bba5e5ce8298f9c 100644 (file)
@@ -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
index 5dc933e75f5b1d307a0e320e45047044bba095d5..a6a9a8f9eabfafb9efd20ba35d84821afce44b4d 100644 (file)
@@ -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: