PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/silverlining/commands/update-check-config.py

https://bitbucket.org/ianb/silverlining/
Python | 12 lines | 10 code | 2 blank | 0 comment | 1 complexity | 2c0fcf19119a752e6f16c57a99dd1461 MD5 | raw file
Possible License(s): GPL-2.0
  1. import sys
  2. import os
  3. from silversupport.appconfig import AppConfig
  4. def main():
  5. app_dir, config = sys.argv[1:]
  6. app = AppConfig(os.path.join(app_dir, 'app.ini'))
  7. app.activate_path()
  8. app.check_config(config)
  9. if __name__ == '__main__':
  10. main()