Skip to content

Commit 8daa8a6

Browse files
VoltrexKeyvaruyadorno
authored andcommitted
build: fix path concatenation
- The `Path` class does not support concatenation with the `+` operator, so use the `/` operator instead. - When concatenating paths, if the operand is an absolute path the previous path is ignored, so change `/include` to `include`. PR-URL: #55387 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0230fb1 commit 8daa8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ def configure_zos(o):
13541354
o['variables']['node_static_zoslib'] = b(True)
13551355
if options.static_zoslib_gyp:
13561356
# Apply to all Node.js components for now
1357-
o['variables']['zoslib_include_dir'] = Path(options.static_zoslib_gyp).parent + '/include'
1357+
o['variables']['zoslib_include_dir'] = Path(options.static_zoslib_gyp).parent / 'include'
13581358
o['include_dirs'] += [o['variables']['zoslib_include_dir']]
13591359
else:
13601360
raise Exception('--static-zoslib-gyp=<path to zoslib.gyp file> is required.')

0 commit comments

Comments
 (0)