forked from jotyGill/openpyn-nordvpn
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path__init__.py
38 lines (31 loc) · 1.08 KB
/
__init__.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
38
import sys
import os.path
import subprocess
__version__ = "2.7.5"
__license__ = "GNU General Public License v3 or later (GPLv3+)"
__data_files__ = []
__basefilepath__ = os.path.dirname(os.path.abspath(__file__)) + "/"
log_format = '%(asctime)s [%(levelname)s] %(message)s'
log_folder = "/var/log/openpyn" # logs will be saved here
if sys.platform == "linux":
if subprocess.check_output(['/bin/uname', '-o']).decode(sys.stdout.encoding).strip() == "ASUSWRT-Merlin":
__data_files__ = [('/opt/etc/init.d', ['./openpyn/S23openpyn'])]
elif os.path.exists("/etc/openwrt_release"):
__data_files__ = [('/opt/etc/init.d', ['./openpyn/S23openpyn'])]
# print("\n".join(sorted({attrname for item in gc.get_objects() for attrname in dir(item) if attrname.startswith("__")})))
#
# print(__basefilepath__)
# print(__build_class__)
# print(__builtins__)
# print(__data_files__)
# print(__debug__)
# print(__doc__)
# print(__file__)
# print(__import__)
# print(__license__)
# print(__loader__)
# print(__name__)
# print(__package__)
# print(__path__)
# print(__spec__)
# print(__version__)