Skip to content

Commit

Permalink
Dora dir relative to decorated main file, fixes facebookresearch#28
Browse files Browse the repository at this point in the history
  • Loading branch information
louismartin committed Apr 20, 2022
1 parent c0a425c commit 4dd4f9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dora/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def __init__(self, main: MainFun, dora: DoraConfig):
self.main = main
self.dora = dora
module_name = get_module_name(main.__module__)
dora.dir = Path(main.__globals__['__file__']).parent.parent / dora.dir.name
if module_name is None:
# we are being called in a weird way and definitely not from
# a Dora command.
Expand Down

0 comments on commit 4dd4f9f

Please sign in to comment.