312 for path in reversed([self.apphome] + self.cubes_path()): |
312 for path in reversed([self.apphome] + self.cubes_path()): |
313 resourcesfile = join(path, 'data', 'external_resources') |
313 resourcesfile = join(path, 'data', 'external_resources') |
314 if exists(resourcesfile): |
314 if exists(resourcesfile): |
315 self.debug('loading %s', resourcesfile) |
315 self.debug('loading %s', resourcesfile) |
316 self.ext_resources.update(read_config(resourcesfile)) |
316 self.ext_resources.update(read_config(resourcesfile)) |
|
317 resourcesfile = join(self.apphome, 'external_resources') |
|
318 if exists(resourcesfile): |
|
319 self.debug('loading %s', resourcesfile) |
|
320 self.ext_resources.update(read_config(resourcesfile)) |
317 for resource in ('STYLESHEETS', 'STYLESHEETS_PRINT', |
321 for resource in ('STYLESHEETS', 'STYLESHEETS_PRINT', |
318 'IE_STYLESHEETS', 'JAVASCRIPTS'): |
322 'IE_STYLESHEETS', 'JAVASCRIPTS'): |
319 val = self.ext_resources[resource] |
323 val = self.ext_resources[resource] |
320 if isinstance(val, str): |
324 if isinstance(val, str): |
321 files = [w.strip() for w in val.split(',') if w.strip()] |
325 files = [w.strip() for w in val.split(',') if w.strip()] |