Skip to content

Commit 954f109

Browse files
committed
[cmpcodesize] Use join instead of Unix separator
Use `os.path.join` instead of using Unix file separator--just in case this is run on other platforms some day.
1 parent 0aaeca1 commit 954f109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/cmpcodesize

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ How to specify files:
388388
file = SHORTCUTS[file]
389389

390390
if not file.startswith("./") and oldBuildDir and newBuildDir:
391-
oldExpanded = glob.glob(oldBuildDir + "/" + file)
392-
newExpanded = glob.glob(newBuildDir + "/" + file)
391+
oldExpanded = glob.glob(os.path.join(oldBuildDir, file))
392+
newExpanded = glob.glob(os.path.join(newBuildDir, file))
393393
if oldExpanded and newExpanded:
394394
oldFiles.extend(oldExpanded)
395395
newFiles.extend(newExpanded)

0 commit comments

Comments
 (0)