WIP add default library_name for unknown platforms #104492

Closed
Shane Ambler wants to merge 1 commits from ShaneAmbler/blender-addons:draco-libname into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

When retrieving the draco libname from the dict, we can set a default value to be used for unknown platform names, leaving entries only for known variations to this naming convention.

The entry for linux could also be removed as it can use this default.

Another possibility is to support an environment variable to configure libname, similar to BLENDER_EXTERN_DRACO_LIBRARY_PATH

When retrieving the draco libname from the dict, we can set a default value to be used for unknown platform names, leaving entries only for known variations to this naming convention. The entry for linux could also be removed as it can use this default. Another possibility is to support an environment variable to configure libname, similar to `BLENDER_EXTERN_DRACO_LIBRARY_PATH`
Shane Ambler added 1 commit 2023-03-19 01:52:27 +01:00
Julien Duroure self-assigned this 2023-03-19 04:14:55 +01:00
Julien Duroure requested changes 2024-05-24 15:59:11 +02:00
@ -36,3 +36,3 @@
}.get(sys.platform)
}.get(sys.platform, 'lib{}.so'.format(lib_name))
if path is None or library_name is None:
Member

Setting a default library name makes this check unrelevant

Setting a default library name makes this check unrelevant
Member

No news from the contributor since a very long time, closing it.
Feel free to take feedback into account or create a new PR if needed

No news from the contributor since a very long time, closing it. Feel free to take feedback into account or create a new PR if needed
Julien Duroure closed this pull request 2024-11-13 11:30:44 +01:00
Author
First-time contributor

Well library_name would never be None but path can be None so it could be changed to if path is None:

Well `library_name` would never be None but `path` can be None so it could be changed to `if path is None:`

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104492
No description provided.