Browse Source

grass.py: Allow multiple whitespaces after ^export in load_env()

Huidae Cho 5 years ago
parent
commit
0ee8b328d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -1160,7 +1160,7 @@ def load_env(grass_env_file):
     if not os.access(grass_env_file, os.R_OK):
         return
 
-    export_re = re.compile('^export[ \t]([a-zA-Z_]+[a-zA-Z0-9_]*)=(.*)$')
+    export_re = re.compile('^export[ \t]+([a-zA-Z_]+[a-zA-Z0-9_]*)=(.*)$')
 
     for line in readfile(grass_env_file).split(os.linesep):
         m = export_re.match(line)