Skip to content

Commit b885cf6

Browse files
Merge pull request #2184 from KLayout/bugfix/issue-2169
Fixed issue #2169: adding path to 'python' and 'ruby' subfolders to i…
2 parents 8cc01ca + 84c7609 commit b885cf6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lay/lay/layMacroController.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "lymMacroInterpreter.h"
3232
#include "lymMacro.h"
3333
#include "gsiDecl.h"
34+
#include "tlFileUtils.h"
3435

3536
#include <QDir>
3637
#include <QUrl>
@@ -354,6 +355,8 @@ MacroController::sync_package_paths ()
354355
{
355356
std::vector<std::string> package_locations;
356357

358+
// Add package locations for packages
359+
357360
lay::SaltController *sc = lay::SaltController::instance ();
358361
if (sc) {
359362
lay::Salt &salt = sc->salt ();
@@ -362,6 +365,15 @@ MacroController::sync_package_paths ()
362365
}
363366
}
364367

368+
// Add package locations for technologies which share the same structure
369+
370+
for (db::Technologies::const_iterator t = db::Technologies::instance ()->begin (); t != db::Technologies::instance ()->end (); ++t) {
371+
std::string bd = t->base_path ();
372+
if (! bd.empty () && tl::is_dir (bd)) {
373+
package_locations.push_back (bd);
374+
}
375+
}
376+
365377
// refresh the package locations by first removing the package locations and then rebuilding
366378
// TODO: maybe that is a performance bottleneck, but right now, remove_package_location doesn't do a lot.
367379

0 commit comments

Comments
 (0)