Add psyco option
This commit is contained in:
1 parent
8f64ab1f9c
commit
0d8a16b68f
3 files changed
+8
-6
No files matched your search
@@ -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
|
||||
@@ -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
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user