Переглянути джерело

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', '$'))