mirror of https://github.com/KLayout/klayout.git
Fixed issue #2169: adding path to 'python' and 'ruby' subfolders to interpreter search path also for technologies, not only for packages.
This commit is contained in:
parent
ec5de0ffe8
commit
84c76096cb
|
|
@ -31,6 +31,7 @@
|
|||
#include "lymMacroInterpreter.h"
|
||||
#include "lymMacro.h"
|
||||
#include "gsiDecl.h"
|
||||
#include "tlFileUtils.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QUrl>
|
||||
|
|
@ -354,6 +355,8 @@ MacroController::sync_package_paths ()
|
|||
{
|
||||
std::vector<std::string> package_locations;
|
||||
|
||||
// Add package locations for packages
|
||||
|
||||
lay::SaltController *sc = lay::SaltController::instance ();
|
||||
if (sc) {
|
||||
lay::Salt &salt = sc->salt ();
|
||||
|
|
@ -362,6 +365,15 @@ MacroController::sync_package_paths ()
|
|||
}
|
||||
}
|
||||
|
||||
// Add package locations for technologies which share the same structure
|
||||
|
||||
for (db::Technologies::const_iterator t = db::Technologies::instance ()->begin (); t != db::Technologies::instance ()->end (); ++t) {
|
||||
std::string bd = t->base_path ();
|
||||
if (! bd.empty () && tl::is_dir (bd)) {
|
||||
package_locations.push_back (bd);
|
||||
}
|
||||
}
|
||||
|
||||
// refresh the package locations by first removing the package locations and then rebuilding
|
||||
// TODO: maybe that is a performance bottleneck, but right now, remove_package_location doesn't do a lot.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue