Browse Source

Fix parameter with file.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56889 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 năm trước cách đây
mục cha
commit
5f55023a14

+ 1 - 1
lib/python/pygrass/modules/interface/parameter.py

@@ -70,7 +70,7 @@ class Parameter(object):
         # gisprompt
         #
         if 'gisprompt' in diz:
-            self.type = diz['gisprompt']['prompt']
+            self.typedesc = diz['gisprompt']['prompt']
             self.input = False if diz['gisprompt']['age'] == 'new' else True
         else:
             self.input = True

+ 1 - 0
lib/python/pygrass/modules/interface/read.py

@@ -42,6 +42,7 @@ GETTYPE = {
     'integer': int,
     'float': float,
     'double': float,
+    'file': str,
     'all': lambda x: x,
 }