Add psyco option

This commit is contained in:
Cédric Krier committed 2008-09-13 19:23:34 +02:00
1 parent 8f64ab1f9c
commit 0d8a16b68f
3 files changed
+8 -6

No files matched your search

+4
View File
@@ -60,3 +60,7 @@ max_thread = 40
# Configure the session timeout (inactivity of the client in sec)
#session_timeout = 600
# Enable psyco module
# Need to have psyco installed http://psyco.sourceforge.net/
#psyco = False
+1
View File
@@ -35,6 +35,7 @@ class ConfigManager(object):
'max_thread': 40,
'multi_server': False,
'session_timeout': 600,
'psyco': False,
}
parser = optparse.OptionParser(version=VERSION)
+3 -6
View File
@@ -236,12 +236,9 @@ class TrytonServer(object):
webdavd.start()
#DISPATCHER.run()
#TODO add an option for psyco
#try:
# import psyco
# psyco.full()
#except ImportError:
# pass
if CONFIG['psyco']:
import psyco
psyco.full()
now = time.time()
while True: