migrate stock user space build to new build system
[lunaix-os.git] / lunaix-os / scripts / build-tools / lcfg2 / config.py
index cef5559d44363796011493557231c94f386dbfcc..7ca19422e3b3fe1ac346027b772554752a3c9a91 100644 (file)
@@ -85,6 +85,9 @@ class ConfigEnvironment:
         return self.__globals
         
     def refresh(self):
+        if not self.__exec:
+            return
+
         self.__update_globals()
 
         for name, node in self.__node_table.items():
@@ -111,4 +114,5 @@ class ConfigEnvironment:
             if isinstance(node, TermNode):
                 yield node
 
-import json
\ No newline at end of file
+    def loaded(self):
+        return self.__exec is not None
\ No newline at end of file