Bug 1256571 - Allow ConfigureSandbox.run to not include a given file. r=chmanchester

This commit is contained in:
Mike Hommey 2016-04-13 08:57:45 +09:00
Родитель 9da99bc058
Коммит f7fa631d45
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -196,10 +196,11 @@ class ConfigureSandbox(dict):
self._paths.pop(-1)
def run(self, path):
def run(self, path=None):
'''Executes the given file within the sandbox, and ensure the overall
consistency of the executed script.'''
self.include_file(path)
if path:
self.include_file(path)
for option in self._options.itervalues():
# All options must be referenced by some @depends function