Skip to content

Commit

Permalink
Merge pull request #103 from nrhodes91/convert-relative-paths
Browse files Browse the repository at this point in the history
Convert relative basedir to absolute path
  • Loading branch information
rhodesn authored Jul 3, 2019
2 parents 142de48 + 9c5efa2 commit da01906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configsnap
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ elif customcollectionfile != '/etc/configsnap/additional.conf':
% customcollectionfile)
sys.exit(1)

tagdir = os.path.join(options.basedir, options.tag)
# os.path.abspath to deal with relavive paths
tagdir = os.path.join(os.path.abspath(options.basedir), options.tag)
workdir = create_dir(tagdir, options.overwrite_enabled)
os.chdir(workdir)

Expand Down

0 comments on commit da01906

Please sign in to comment.