Commits

Vince Spicer committed eee3558

Cleanup

  • Participants
  • Parent commits fa5eff2

Comments (0)

Files changed (1)

File paste/deploy/loadwsgi.py

 
         with open(filename) as f:
             config_files = []
+            basedir = os.path.split(filename)[0]
+
             for line in f:
                 match = self._include_re.search(line)
                 if match:
-                    config_files.append(match.groups()[0])
-            if config_files:
-                basedir = os.path.split(filename)[0]
-                for conf in config_files:
-                    path = os.path.join(basedir, conf)
+                    path = os.path.join(basedir, match.groups()[0])
                     if os.path.exists(path):
                         self.parser.read_file(open(path))
             f.seek(0)