Skip to content

Commit

Permalink
Merge pull request #33 from asmodehn/strategy_import_fix
Browse files Browse the repository at this point in the history
Gryphon now supports '.py' as a strategy file type in addition to '.pyx'.
  • Loading branch information
garethdmm committed Jul 2, 2019
2 parents 8cd2f43 + 7ab9b08 commit 9d3c0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gryphon/execution/live_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_strategy_class_from_filepath(strategy_path):
from the current working directory to a .pyx file.
"""

module_path = strategy_path.replace('/', '.').replace('.pyx', '')
module_path = strategy_path.replace('/', '.').replace('.pyx', '').replace('.py', '')

# Since in this case we're importing a file outside of the library, we have to
# add our current directory to the python path.
Expand Down

0 comments on commit 9d3c0fd

Please sign in to comment.