Explorar o código

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

Huidae Cho %!s(int64=5) %!d(string=hai) anos
pai
achega
0ee8b328d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)