mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 15:56:34 +01:00
17 lines
436 B
Python
17 lines
436 B
Python
import json
|
|
|
|
class CLMain():
|
|
def __init__(self):
|
|
self.path = '/usr/local/CyberCP/version.txt'
|
|
#versionInfo = json.loads(open(self.path, 'r').read())
|
|
self.version = '2.4'
|
|
self.build = '3'
|
|
|
|
ipFile = "/etc/cyberpanel/machineIP"
|
|
f = open(ipFile)
|
|
ipData = f.read()
|
|
self.ipAddress = ipData.split('\n', 1)[0]
|
|
|
|
self.initialMeta = {
|
|
"result": "ok"
|
|
} |