コード例 #1
0
ファイル: curseshosts.py プロジェクト: ruling/huhamhire-hosts
 def init_main(self):
     # Set mirrors
     self.mirrors = Utilities.set_network("network.conf")
     self.set_platform()
     # Read data file and set function list
     try:
         RetrieveData.unpack()
         RetrieveData.connect_db()
         self.set_func_list()
         self.set_info()
     except IOError:
         pass
     except BadZipfile:
         pass
     # Check if current session have root privileges
     self.check_root()