Skip to content

Commit

Permalink
should use os.path.join
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Feb 24, 2021
1 parent 1761aeb commit 52d5b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/spack/spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,8 @@ def log_path(self):
@property
def phase_log_files(self):
"""Find sorted phase log files written to the staging directory"""
log_files = glob.glob("%s/spack-build-*-out.txt" % self.stage.path)
logs_dir = os.path.join(self.stage.path, "spack-build-*-out.txt")
log_files = glob.glob(logs_dir)
log_files.sort()
return log_files

Expand Down

0 comments on commit 52d5b55

Please sign in to comment.