Update of /cvsroot/btplusplus/BT++/src
In directory sc8-pr-cvs1:/tmp/cvs-serv24607/src
Modified Files:
Build_WT.py
Added Files:
WT++.pyw
Log Message:
Made build work for windows. Use WT++.pyw for windows since readline doesn't work there.
Fixed a bug(?) in htmltmpl on Windows.
Fixed menu.tmpl for Opera7
--- NEW FILE: WT++.pyw ---
#!/usr/bin/python
from sys import argv, version, exit
from os import path, chdir
from shutil import copyfile
from ConfigFile import Config
from WebServer.BTWebServer import BTWebServer, BTWait, WTLoaders, WTSeeds
from threading import *
assert version >= '2', "Install Python 2.0 or greater"
if __name__ == '__main__':
# Change to the directory of BT++
chdir(
path.abspath(
path.dirname(argv[0])
)
)
# Copy torrent file
if len(argv) == 2:
try:
copyfile(argv[1], path.join(Config.Get('Paths', 'Torrent'), path.split(argv[1])[1]))
except:
pass
print ("Started")
httpd = BTWebServer()
httpdth = Thread(target = httpd.server)
httpdth.setDaemon(1)
httpdth.start()
BTWait.wait()
WTLoaders.ShutDown()
WTSeeds.ShutDown()
Index: Build_WT.py
===================================================================
RCS file: /cvsroot/btplusplus/BT++/src/Build_WT.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Build_WT.py 28 Feb 2003 21:25:33 -0000 1.1
--- Build_WT.py 25 Mar 2003 00:27:02 -0000 1.2
***************
*** 9,11 ****
author_email='bel...@us...',
url='http://www.sf.net/projects/bt++/',
! scripts=['WT++.py'] )
--- 9,11 ----
author_email='bel...@us...',
url='http://www.sf.net/projects/bt++/',
! scripts=['WT++.pyw'] )
|