Skip to content

Commit

Permalink
Fix safe access to 'with_python_bindings' option.
Browse files Browse the repository at this point in the history
Ensure 'with_python_bindings' is safely accessed using 'get_safe' to prevent potential errors when the option is undefined during wsm build

NP-734
  • Loading branch information
saumyaj3 committed Feb 6, 2025
1 parent 9d623a3 commit fa903e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def package(self):
packager.run()

def package_info(self):
if self.options.with_python_bindings:
if self.options.get_safe("with_python_bindings", False):
self.conf_info.define("user.dulcificum:pythonpath",
os.path.join(self.package_folder, "lib", "pyDulcificum"))

Expand Down

0 comments on commit fa903e6

Please sign in to comment.