#296 fixes #286
Closed 6 years ago by leamas. Opened 6 years ago by sergiomb.
sergiomb/FedoraReview master  into  master

file modified
+4 -3
@@ -161,9 +161,10 @@ 

  

          config_opts = {}

          with open(path) as f:

-             config = [line for line in f.readlines() if

-                       line.find("config_opts['root']") >= 0]

-         exec config[0]                           # pylint: disable=W0122

+             content = f.read()

+             content = re.sub(r'include\((.*)\)', r'exec(open(\g<1>).read(), {}, locals())', content)

+             config = compile(content, path, 'exec')

+         exec(config)

          self.mock_root = config_opts['root']

          if Settings.uniqueext:

              self.mock_root += Settings.uniqueext

no initial comment

Thansk for patch, merged into devel branch. We need to make a release... will try to next week, time permitting

So, merged into devel... closing this PR for master

Pull-Request has been closed by leamas

6 years ago

ah yes , this one was not in devel branch , I forgot to close

Thanks

Metadata