Commit 5af5c2a 1 parent fe62c80 commit 5af5c2a Copy full SHA for 5af5c2a
File tree 1 file changed +7
-6
lines changed
buildroot/share/PlatformIO/scripts
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -180,22 +180,23 @@ def apply_config_ini(cp):
180
180
# For a key ending in .ini load and parse another .ini file
181
181
if ckey .endswith ('.ini' ):
182
182
sect = 'base'
183
- if '@' in ckey : sect , ckey = ckey .split ('@' )
184
- other_ini = configparser .ConfigParser ()
185
- other_ini .read (config_path (ckey ))
186
- apply_sections (other_ini , sect )
183
+ if '@' in ckey : sect , ckey = map (str .strip , ckey .split ('@' ))
184
+ cp2 = configparser .ConfigParser ()
185
+ cp2 .read (config_path (ckey ))
186
+ apply_sections (cp2 , sect )
187
+ ckey = 'base' ;
187
188
188
189
# (Allow 'example/' as a shortcut for 'examples/')
189
190
elif ckey .startswith ('example/' ):
190
191
ckey = 'examples' + ckey [7 :]
191
192
192
193
# For 'examples/<path>' fetch an example set from GitHub.
193
194
# For https?:// do a direct fetch of the URL.
194
- elif ckey .startswith ('examples/' ) or ckey .startswith ('http' ):
195
+ if ckey .startswith ('examples/' ) or ckey .startswith ('http: ' ):
195
196
fetch_example (ckey )
196
197
ckey = 'base'
197
198
198
- elif ckey == 'all' :
199
+ if ckey == 'all' :
199
200
apply_sections (cp )
200
201
201
202
else :
You can’t perform that action at this time.
0 commit comments