Skip to content

Commit

Permalink
Work around Storm sending all arguments to streamparse_run as a singl…
Browse files Browse the repository at this point in the history
…e string
  • Loading branch information
dan-blanchard committed Apr 11, 2016
1 parent d9c78b7 commit f9a01e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions streamparse/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def main():
'Storm.',
choices=_SERIALIZERS.keys(),
default='json')
# Storm sends everything as one string, which is not great
if len(sys.argv) == 2:
sys.argv = [sys.argv[0]] + sys.argv[1].split()
args = parser.parse_args()
# Add current directory to sys.path so imports will work
sys.path.append(os.getcwd())
Expand Down

0 comments on commit f9a01e9

Please sign in to comment.