Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Added cwd to python path rather than requiring the user to set it
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcurtin committed Jul 9, 2019
1 parent d85a14a commit a94daec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bert/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ def new_module(options: typing.Any) -> None:

logger.info(f'''
Run the new module with the following command:
PYTHONPATH='.' bert-runner.py -j sync_sounds -m {options.new_module}
bert-runner.py -j sync_sounds -m {options.new_module}
''')

def show_how(options: typing.Any) -> None:
logger.info('''
Run the new module with the following command:
PYTHONPATH='.' bert-runner.py -j <job_name> -m <module_name>
bert-runner.py -j <job_name> -m <module_name>
''')

2 changes: 2 additions & 0 deletions bin/bert-runner.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env python

import os
import sys

from bert import factory, utils

if __name__ in ['__main__']:
sys.path.append(os.getcwd())
options = factory.capture_options()
if options.how:
utils.show_how(options)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


EXCLUDE_FROM_PACKAGES = ['bert.bin']
version = '0.3.3'
version = '0.3.4'
description = 'A microframework for simple ETL solutions'

def read(fname):
Expand Down

0 comments on commit a94daec

Please sign in to comment.