diff --git a/orator/commands/command.py b/orator/commands/command.py index 2a114400..85a878b3 100644 --- a/orator/commands/command.py +++ b/orator/commands/command.py @@ -123,7 +123,7 @@ def _get_config(self, path=None): config = {} with open(path) as fh: - exec(fh.read(), {}, config) + exec(fh.read(), {"__file__": path}, config) else: raise RuntimeError("Config file [%s] is not supported." % path)