openbsd-ports/net/BitTorrent/patches/patch-BitTorrent___init___py

29 lines
906 B
Plaintext
Raw Normal View History

$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
@@ -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
@@ -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