Skip to content

Commit fa903e6

Browse files
committed
Fix safe access to 'with_python_bindings' option.
Ensure 'with_python_bindings' is safely accessed using 'get_safe' to prevent potential errors when the option is undefined during wsm build NP-734
1 parent 9d623a3 commit fa903e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def package(self):
208208
packager.run()
209209

210210
def package_info(self):
211-
if self.options.with_python_bindings:
211+
if self.options.get_safe("with_python_bindings", False):
212212
self.conf_info.define("user.dulcificum:pythonpath",
213213
os.path.join(self.package_folder, "lib", "pyDulcificum"))
214214

0 commit comments

Comments
 (0)