Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d859785

Browse files
committed
Add twit "home" location to sys.path (so you can put the applet on the
desktop)
1 parent 052b7e1 commit d859785

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Mac/Tools/twit/twit.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
Jack Jansen, CWI, August 1996."""
1212

1313
import os
14+
import sys
15+
16+
# Add our directory to path, if needed
17+
dirname = os.path.split(__file__)[0]
18+
if not dirname in sys.path:
19+
sys.path.append(dirname)
20+
1421
if os.name == 'mac':
1522
import MacOS
1623
MacOS.splash(515) # Try to show the splash screen

Mac/Tools/twit/twit.rsrc.hqx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:#A4hDA3ZFR0bB`"bFh*M8P0&4!%!N!HdV-5P!*!%!3!!!,)5!!#a%J!!!TS!!!$
44
`DIrr)"H6)!!#JH$`Drrr)"H8*!#3"2"[rrmJ#A4hDA3ZFR0bB`)!!!!rN!J!N!`
5-
rN!J!N"LZJ'B'!*!'Y+`!m(Errb!AR%3!N!6`Grrr)"HG5!#3"2"irrmJ&jj-!*!
5+
rN!J!N"LZUS!V!*!'Y+`!m(Errb!AR%3!N!6`Grrr)"HG5!#3"2"irrmJ&jj-!*!
66
%m(Rrrb!ARe!!N!6`H[rr)"HJ9!#3"2"lrrmJ&k&B!*!%m(crrf!ASP`!N!6`IIr
77
r)"HMB!#3"2#!rrmJ&k4N!*!&!rrr)"HPD!!#G#LrK2rr)"G2)!#3"#S!6!"S!AJ
88
#'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!*
922922
08h4KBfXJBR*[Gh0PFJe6G'&MDb"LFQphFf9b$Ne[C(9XC5"LFQphFf9b"8&bFQp
923923
h#Q*bC@&VF'pTER3*3@*[GA3JBQpi#8&LEh9d)'*[H!P"BQpeG#"LEhJ16@pNG@a
924924
P)'*bEhGcCA)08h4KBfXJBR*[Gh0PFJY@BA)JBR*[Gh0PFJj#FQphFf9b)(GTEQ4
925-
[G`j2GfjPFL"bCA0[GA*MCE8":
925+
[G`j2GfjPFL"bCA0[GA*MC8aE:

0 commit comments

Comments
 (0)