Skip to content

Commit

Permalink
Used list to keep old behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldemarmiesse committed Jul 23, 2019
1 parent 4a8befc commit 4e760b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sacred/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def create(cls, mod):

def convert_path_to_module_parts(path):
"""Convert path to a python file into list of module names."""
module_parts = pathlib.Path(path).parts
module_parts = list(pathlib.Path(path).parts)
if module_parts[-1] in ['__init__.py', '__init__.pyc']:
# remove trailing __init__.py
module_parts = module_parts[:-1]
Expand Down

0 comments on commit 4e760b1

Please sign in to comment.