-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration
49 lines (44 loc) · 1.5 KB
/
configuration
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
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/python3
# -*- Author : Karnain
#
from configparser import ConfigParser
import os as console
root = console.path.join(console.path.dirname(console.path.realpath(__file__)))
initialize = ConfigParser()
class expand_path:
def common_engine():
initialize["require"] = {
'Path': '{}/bin'.format(root),
'root': '{}'.format(root),
'php' : '{}/php'.format(root)
}
console.chdir("{}/lib/hacklovers/ui/console/".format(root))
with open('.config.cfg', 'w') as f:
initialize.write(f)
expand_path.All_environments()
pass
def All_environments():
initialize["require"] = {
'Banner': '{}/lib/hacklovers/ui/console/banner.py'.format(root),
'System': '{}/lib/hacklovers/ui/console/console.py'.format(root)
}
console.chdir("{}/config/".format(root))
with open('LinkTracker.cfg', 'w') as f:
initialize.write(f)
expand_path.Development()
pass
def Development():
initialize["require"] = {
'log': '{}/log'.format(root),
'php': '{}/php'.format(root),
'home': '{}'.format(root),
'Banner': '{}/lib/hacklovers/ui/console/banner.py'.format(root),
'bin': '{}/bin'.format(root)
}
console.chdir("{}/bin/".format(root))
with open('.config.cfg', 'w') as f:
initialize.write(f)
pass
if __name__ == "__main__":
expand_path.common_engine()
pass