Skip to content

Commit f48d30e

Browse files
VoltrexKeyvaaduh95
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 1da4168 commit f48d30e

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
@@ -1356,7 +1356,7 @@ def configure_zos(o):
13561356
o['variables']['node_static_zoslib'] = b(True)
13571357
if options.static_zoslib_gyp:
13581358
# Apply to all Node.js components for now
1359-
o['variables']['zoslib_include_dir'] = Path(options.static_zoslib_gyp).parent + '/include'
1359+
o['variables']['zoslib_include_dir'] = Path(options.static_zoslib_gyp).parent / 'include'
13601360
o['include_dirs'] += [o['variables']['zoslib_include_dir']]
13611361
else:
13621362
raise Exception('--static-zoslib-gyp=<path to zoslib.gyp file> is required.')

0 commit comments

Comments
 (0)