Skip to content

Commit

Permalink
Fix joining of path and absolute path with os.path.join
Browse files Browse the repository at this point in the history
  • Loading branch information
17451k committed Sep 17, 2018
1 parent 449a821 commit be65579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clade/extensions/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _run_cif(self, cmd, opts_to_filter=None):
opts_to_filter = []

for cmd_in in cmd["in"]:
cif_out = os.path.join(self.temp_dir, str(os.getpid()), cmd_in + ".o")
cif_out = os.path.join(self.temp_dir, str(os.getpid()), cmd_in.lstrip(os.sep) + ".o")
os.makedirs(os.path.dirname(cif_out), exist_ok=True)
os.makedirs(self.work_dir, exist_ok=True)

Expand Down

0 comments on commit be65579

Please sign in to comment.