diff --git a/setup.py b/setup.py index dc08f78..b94b106 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ def run_tests(self): setup( name='xcessiv', - version='0.3.2', + version='0.3.4', url='https://github.com/reiinakano/xcessiv', license='Apache License 2.0', author='Reiichiro Nakano', diff --git a/xcessiv/__init__.py b/xcessiv/__init__.py index 2ba8b6b..9fb0768 100644 --- a/xcessiv/__init__.py +++ b/xcessiv/__init__.py @@ -2,7 +2,7 @@ from flask import Flask -__version__ = '0.3.2' +__version__ = '0.3.4' app = Flask(__name__, static_url_path='/static', static_folder='ui/build/static') diff --git a/xcessiv/scripts/runapp.py b/xcessiv/scripts/runapp.py index fbd6ae2..7e32e5c 100644 --- a/xcessiv/scripts/runapp.py +++ b/xcessiv/scripts/runapp.py @@ -10,13 +10,6 @@ from six import iteritems -def wrap(task, pipe): - def wrapper(*args, **kwargs): - sys.stdout = pipe - task(*args, **kwargs) - return wrapper - - def main(): parser = argparse.ArgumentParser(description='Launch Xcessiv server and workers') parser.add_argument('-w', '--worker', help='Define number of workers', type=int) @@ -62,12 +55,11 @@ def main(): processes = [] try: - conn1, conn2 = Pipe(duplex=False) - server_proc = Process(target=wrap(launch, conn2), args=(app,)) + server_proc = Process(target=launch, args=(app,)) server_proc.start() for i in range(app.config['NUM_WORKERS']): - p = Process(target=wrap(runworker, conn2), args=(app,)) + p = Process(target=runworker, args=(app,)) processes.append(p) p.start()