|
|
@ -14,6 +14,11 @@ import mitogen.core
|
|
|
|
import mitogen.master
|
|
|
|
import mitogen.master
|
|
|
|
import mitogen.utils
|
|
|
|
import mitogen.utils
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
import faulthandler
|
|
|
|
|
|
|
|
except ImportError:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
import urlparse
|
|
|
|
import urlparse
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
@ -32,6 +37,9 @@ sys.path.append(DATA_DIR)
|
|
|
|
if mitogen.is_master:
|
|
|
|
if mitogen.is_master:
|
|
|
|
mitogen.utils.log_to_file()
|
|
|
|
mitogen.utils.log_to_file()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if faulthandler is not None:
|
|
|
|
|
|
|
|
faulthandler.enable()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def data_path(suffix):
|
|
|
|
def data_path(suffix):
|
|
|
|
path = os.path.join(DATA_DIR, suffix)
|
|
|
|
path = os.path.join(DATA_DIR, suffix)
|
|
|
|