コード例 #1
0
ファイル: app.py プロジェクト: WAeUP/waeup.identifier
    def get_application_config(self):
        """Get path of app configuration file.

        We lookup a file `.waeupident.ini` in user home.
        """
        path = get_conffile_location()
        Logger.debug("waeup.identifier: expect config file in %s" % path)
        return super(FPScanApp, self).get_application_config(path)
コード例 #2
0
    def get_application_config(self):
        """Get path of app configuration file.

        We lookup a file `.waeupident.ini` in user home.
        """
        path = get_conffile_location()
        Logger.debug("waeup.identifier: expect config file in %s" % path)
        return super(FPScanApp, self).get_application_config(path)
コード例 #3
0
 def test_get_conffile_location(self, home_dir):
     # we can get a config file location path
     result = get_conffile_location()
     assert result == str(home_dir / '.waeupident.ini')
コード例 #4
0
ファイル: test_config.py プロジェクト: WAeUP/waeup.identifier
 def test_get_conffile_location(self, home_dir):
     # we can get a config file location path
     result = get_conffile_location()
     assert result == str(home_dir / '.waeupident.ini')