"tmpdir": '/var/tmp/mic',
"cachedir": '/var/tmp/mic/cache',
"outdir": './mic-output',
-
- "plugin_dir": "/usr/lib/mic/plugins",
"arch": None, # None means auto-detect
"pkgmgr": "auto",
"name": "output",
if section in self.DEFAULTS:
getattr(self, section).update(dict(parser.items(section)))
+ if os.getenv("MIC_PLUGIN_DIR"):
+ self.common["plugin_dir"] = os.environ["MIC_PLUGIN_DIR"]
+
# append common section items to other sections
for section in self.DEFAULTS.keys():
if section != "common":
return os.path.dirname(path)
def get_mic_libpath():
- # TBD: so far mic lib path is hard coded
- return "/usr/lib/mic"
+ return os.getenv("MIC_LIBRARY_PATH", "/usr/lib/mic")
# the hard code path is prepared for bootstrap
def sync_mic(bootstrap, binpth = '/usr/bin/mic',