コード例 #1
0
ファイル: core.py プロジェクト: Lactem/keystone
 def _paste_config(self, config):
     if not config.startswith('config:'):
         test_path = os.path.join(TESTSDIR, config)
         etc_path = os.path.join(ROOTDIR, 'etc', config)
         for path in [test_path, etc_path]:
             if os.path.exists('%s-paste.ini' % path):
                 return 'config:%s-paste.ini' % path
     return config
コード例 #2
0
 def _paste_config(self, config):
     if not config.startswith('config:'):
         test_path = os.path.join(TESTSDIR, config)
         etc_path = os.path.join(ROOTDIR, 'etc', config)
         for path in [test_path, etc_path]:
             if os.path.exists('%s-paste.ini' % path):
                 return 'config:%s-paste.ini' % path
     return config
コード例 #3
0
ファイル: test.py プロジェクト: kwss2/keystone
 def _paste_config(self, config):
     if not config.startswith("config:"):
         test_path = os.path.join(TESTSDIR, config)
         etc_path = os.path.join(ROOTDIR, "etc", config)
         for path in [test_path, etc_path]:
             if os.path.exists("%s.conf.sample" % path):
                 return "config:%s.conf.sample" % path
     return config