Преглед изворни кода

grass.py: Evaluate ^export lines only and expand variables in double/non-quoted values

Huidae Cho пре 5 година
родитељ
комит
61379ec384
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -1175,7 +1175,7 @@ def load_env(grass_env_file):
         elif v.startswith('"') and v.endswith('"'):
             v = v.strip('"')
         elif v.startswith("'") or v.endswith("'") or v.startswith('"') or v.endswith('"'):
-            # multi-line variable
+            # ignore multi-line variables
             continue
         if expand:
             v = os.path.expanduser(os.path.expandvars(v.replace('\$', '\0')).replace('\0', '$'))