2005-06-01 12:02:31 -04:00
|
|
|
$OpenBSD: patch-BitTorrent___init___py,v 1.2 2005/06/01 16:02:31 naddy Exp $
|
|
|
|
--- BitTorrent/__init__.py.orig Tue May 24 00:01:28 2005
|
|
|
|
+++ BitTorrent/__init__.py Sat May 28 12:46:46 2005
|
2005-05-15 10:58:08 -04:00
|
|
|
@@ -22,7 +22,7 @@ import os
|
|
|
|
import re
|
|
|
|
|
|
|
|
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)
|
|
|
|
return ip, dp
|
2005-06-01 12:02:31 -04:00
|
|
|
@@ -133,10 +133,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
|