mirror of https://github.com/KLayout/klayout.git
Avoid an error message on startup when Python/Ruby isn't enabled.
This commit is contained in:
parent
7de90ae595
commit
20976d7521
|
|
@ -1849,7 +1849,7 @@ static void autorun_for (lym::MacroCollection &collection, bool early)
|
|||
}
|
||||
|
||||
for (lym::MacroCollection::iterator c = collection.begin (); c != collection.end (); ++c) {
|
||||
if ((early && c->second->is_autorun_early ()) || (!early && c->second->is_autorun () && !c->second->is_autorun_early ())) {
|
||||
if (c->second->can_run () && ((early && c->second->is_autorun_early ()) || (!early && c->second->is_autorun () && !c->second->is_autorun_early ()))) {
|
||||
BEGIN_PROTECTED_SILENT
|
||||
c->second->run ();
|
||||
c->second->install_doc ();
|
||||
|
|
|
|||
Loading…
Reference in New Issue