diff options
author | Anish Athalye <me@anishathalye.com> | 2020-01-03 16:07:44 -0500 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2020-01-03 16:45:35 -0500 |
commit | 320d5d0123b045fe922cf576d8d65e2db0517910 (patch) | |
tree | 2f6faf19519ac2207b03ecfa259a794f112acf90 /dotbot | |
parent | 138fdbc8d7f42bd54e0a1d0c07d5858b1055ea50 (diff) |
Add tests for canonicalize-path
Diffstat (limited to 'dotbot')
-rw-r--r-- | dotbot/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dotbot/cli.py b/dotbot/cli.py index 2680acf..77bd439 100644 --- a/dotbot/cli.py +++ b/dotbot/cli.py @@ -73,10 +73,10 @@ def main(): if not isinstance(tasks, list): raise ReadingError('Configuration file must be a list of tasks') if options.base_directory: - base_directory = options.base_directory + base_directory = os.path.abspath(options.base_directory) else: # default to directory of config file - base_directory = os.path.dirname(os.path.realpath(options.config_file)) + base_directory = os.path.dirname(os.path.abspath(options.config_file)) os.chdir(base_directory) dispatcher = Dispatcher(base_directory) success = dispatcher.dispatch(tasks) |