forked from fadinglr/Parat
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.py
37 lines (25 loc) · 853 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python2
# -*- coding: UTF8 -*-
#
# Copyright(c) 2017, micle(@micle_fm - www.micle.ir - mhd.ceh8@gmail)
# Parat project is under the GNU GENERAL PUBLIC LICENSE (GPL) license.
# see the COPYING file for the detailed licence terms
#
from sys import version_info
from lib.Completer import auto_complete
from core.Shell import start_loop
from core.Creds import ParatLogin
if version_info[0] != 3:
current_version = '.'.join(map(str, list(version_info[0:3])))
exit("Parat_iOS only support Python 3.x -> Found: %s" % current_version)
if __name__ == '__main__':
# check parat login system
success = False
login_obg = ParatLogin()
is_login = login_obg.check()
if is_login:
success = login_obg.prompt()
if success:
start_loop(login_obg)
else:
start_loop(login_obg)