Explorar o código

fix for keyError

Nate Brady %!s(int64=8) %!d(string=hai) anos
pai
achega
da484c0744
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      toolset/setup/linux/setup_util.py

+ 1 - 1
toolset/setup/linux/setup_util.py

@@ -68,7 +68,7 @@ def replace_text(file, to_replace, replacement):
 # Queries the shell for the value of FWROOT
 def get_fwroot():
 
-    if os.environ['FWROOT']:
+    if os.getenv('FWROOT'):
         return os.environ['FWROOT']
     else:
         return os.getcwd()