File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
python/plugins/sextante/r Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,10 @@ def defineCharacteristicsFromFile(self):
97
97
filename = os .path .basename (self .descriptionFile )
98
98
self .name = filename [:filename .rfind ("." )].replace ("_" , " " )
99
99
self .group = "User R scripts"
100
+ ender = 0
100
101
lines = open (self .descriptionFile )
101
102
line = lines .readline ().strip ("\n " ).strip ("\r " )
102
- while line != "" :
103
+ while ender < 10 :
103
104
if line .startswith ("##" ):
104
105
try :
105
106
self .processParameterLine (line )
@@ -112,6 +113,10 @@ def defineCharacteristicsFromFile(self):
112
113
self .addOutput (OutputHTML (RAlgorithm .R_CONSOLE_OUTPUT , "R Console Output" ))
113
114
self .showConsoleOutput = True
114
115
else :
116
+ if line == '' :
117
+ ender += 1
118
+ else :
119
+ ender = 0
115
120
self .commands .append (line )
116
121
self .script += line + "\n "
117
122
line = lines .readline ().strip ("\n " ).strip ("\r " )
You can’t perform that action at this time.
0 commit comments