29 lines
984 B
Plaintext
29 lines
984 B
Plaintext
$OpenBSD: patch-BitTorrent___init___py,v 1.3 2005/08/02 14:00:31 naddy Exp $
|
|
--- BitTorrent/__init__.py.orig Sat Jul 9 01:22:38 2005
|
|
+++ BitTorrent/__init__.py Tue Jul 19 20:58:37 2005
|
|
@@ -29,7 +29,7 @@ if os.name == 'posix':
|
|
gettext.install('bittorrent', 'locale')
|
|
|
|
def calc_unix_dirs():
|
|
- appdir = '%s-%s'%(app_name, version)
|
|
+ appdir = app_name
|
|
ip = os.path.join('share', 'pixmaps', appdir)
|
|
dp = os.path.join('share', 'doc' , appdir)
|
|
lp = os.path.join('share', 'locale')
|
|
@@ -145,10 +145,13 @@ if is_frozen_exe:
|
|
del sys
|
|
|
|
def spawn(torrentqueue, cmd, *args):
|
|
- ext = 'py'
|
|
+ ext = ''
|
|
if is_frozen_exe:
|
|
ext = 'exe'
|
|
- path = os.path.join(app_root,cmd+'.'+ext)
|
|
+ if ext == '':
|
|
+ path = os.path.join(app_root,cmd)
|
|
+ else:
|
|
+ path = os.path.join(app_root,cmd+'.'+ext)
|
|
args = [path] + list(args) # $0
|
|
if os.name == 'nt':
|
|
# do proper argument quoting since exec/spawn on Windows doesn't
|