diff options
author | Anish Athalye <me@anishathalye.com> | 2020-01-03 16:46:19 -0500 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2020-01-03 16:46:19 -0500 |
commit | ec8498ffb88d43c7d0648033d3d758ebb96a9378 (patch) | |
tree | d0f4443ea7f55931a9df52e6a36c51cadd340fba /dotbot/cli.py | |
parent | 3fcc13d803f4f0190d997f71f3af693ecef3e4c5 (diff) | |
parent | 320d5d0123b045fe922cf576d8d65e2db0517910 (diff) |
Merge branch 'ypid/add/link_real_path_option'
Diffstat (limited to 'dotbot/cli.py')
-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) |