Skip to content

Commit

Permalink
Unimportant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Sep 13, 2019
1 parent 45f824e commit 5d2830b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cwl_airflow/bin/cwl-airflow
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from cwl_airflow.wes.server import run_wes_server
from cwl_airflow.app.launch import Launcher


def run_relocate(args):
def run_init(args):
launcher = Launcher(os.environ.get("AIRFLOW_HOME"))
launcher.update_shebang(os.path.join(launcher.contents_dir, "Resources/app_packages/bin"))
launcher.update_shebang(os.path.join(launcher.contents_dir, "Resources/app/bin"))
Expand All @@ -27,8 +27,8 @@ def arg_parser():
wes_parser.add_argument("--port", dest="port", type=int, help="Port to run API server (default: 8081)", default=8081)
wes_parser.add_argument("--host", dest="host", help="Host to run API server (default: 127.0.0.1)", default="127.0.0.1")

init_parser = subparsers.add_parser('relocate', help="Relocate CWL-Airflow App", parents=[parent_parser])
init_parser.set_defaults(func=run_relocate)
init_parser = subparsers.add_parser('init', help="Init CWL-Airflow App", parents=[parent_parser])
init_parser.set_defaults(func=run_init)

return general_parser

Expand Down
2 changes: 1 addition & 1 deletion dev/macos/cwl-airflow
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
CONTENTS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
export PYTHONPATH="$CONTENTS_DIR/Resources/app":"$CONTENTS_DIR/Resources/app_packages"
cd "$CONTENTS_DIR/Resources"
python/bin/python3 ./app/bin/cwl-airflow relocate
python/bin/python3 ./app/bin/cwl-airflow init
python/bin/python3 -m cwl_airflow
2 changes: 1 addition & 1 deletion dev/macos/relocate → dev/macos/init
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
CONTENTS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
export PYTHONPATH="$CONTENTS_DIR/Resources/app":"$CONTENTS_DIR/Resources/app_packages"
cd "$CONTENTS_DIR/Resources"
python/bin/python3 ./app/bin/cwl-airflow relocate
python/bin/python3 ./app/bin/cwl-airflow init

0 comments on commit 5d2830b

Please sign in to comment.