Revision: 77296
http://sourceforge.net/p/brlcad/code/77296
Author: starseeker
Date: 2020-09-30 22:11:27 +0000 (Wed, 30 Sep 2020)
Log Message:
-----------
Whoops, using wrong path prefix.
Modified Paths:
--------------
brlcad/branches/thirdparty_rework/src/libtclcad/auto_path.c
Modified: brlcad/branches/thirdparty_rework/src/libtclcad/auto_path.c
===================================================================
--- brlcad/branches/thirdparty_rework/src/libtclcad/auto_path.c 2020-09-30
21:51:44 UTC (rev 77295)
+++ brlcad/branches/thirdparty_rework/src/libtclcad/auto_path.c 2020-09-30
22:11:27 UTC (rev 77296)
@@ -298,10 +298,10 @@
bu_path_component(&pdir, bu_vls_cstr(&w_root), BU_PATH_DIRNAME);
bu_vls_sprintf(&tdir, "%s%c%s", bu_vls_cstr(&pdir), BU_DIR_SEPARATOR,
bu_vls_cstr(&libstr));
// Have a library directory, see what's in it
- if (bu_file_exists(bu_vls_cstr(&lib_path), NULL)) {
+ if (bu_file_exists(bu_vls_cstr(&tdir), NULL)) {
for (size_t i = 0; i < BU_PTBL_LEN(&lib_subpaths); i++) {
const char *fname = (const char *)BU_PTBL_GET(&lib_subpaths, i);
- bu_vls_sprintf(&lib_path, "%s%c%s", libdir, BU_DIR_SEPARATOR,
fname);
+ bu_vls_sprintf(&lib_path, "%s%c%s", bu_vls_cstr(&tdir),
BU_DIR_SEPARATOR, fname);
if (bu_file_exists(bu_vls_cstr(&lib_path), NULL)) {
// Have a path
const char *p = bu_strdup(bu_vls_cstr(&lib_path));
@@ -319,6 +319,12 @@
bu_ptbl_free(&found_subpaths);
}
+ // Libs not found
+ //for (size_t i = 0; i < BU_PTBL_LEN(&lib_subpaths); i++) {
+ // const char *fname = (const char *)BU_PTBL_GET(&lib_subpaths, i);
+ // bu_log("Not found: %s\n", fname);
+ //}
+
// Now that we've looked for the libs, handle the data dirs. These are
// simpler as they should be guaranteed to be in BU_DIR_DATA.
struct bu_vls data_path = BU_VLS_INIT_ZERO;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits