Skip to content

Commit

Permalink
build: fix path concatenation
Browse files Browse the repository at this point in the history
- 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`.
  • Loading branch information
VoltrexKeyva committed Oct 15, 2024
1 parent 14f2db9 commit b8efb25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ def configure_zos(o):
o['variables']['node_static_zoslib'] = b(True)
if options.static_zoslib_gyp:
# Apply to all Node.js components for now
o['variables']['zoslib_include_dir'] = Path(options.static_zoslib_gyp).parent + '/include'
o['variables']['zoslib_include_dir'] = Path(options.static_zoslib_gyp).parent / 'include'
o['include_dirs'] += [o['variables']['zoslib_include_dir']]
else:
raise Exception('--static-zoslib-gyp=<path to zoslib.gyp file> is required.')
Expand Down

0 comments on commit b8efb25

Please sign in to comment.