forked from GoobyCorp/D3Edit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
D3Edit.py
26 lines (21 loc) · 814 Bytes
/
D3Edit.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
#!/usr/bin/env python3
import platform
from os import getcwd
def main():
import gui
# Initialize GUI
instanced_gui = gui.D3Edit()
instanced_gui.start()
if __name__ == "__main__":
venv_platforms = ['Linux', 'Darwin']
running_os = platform.system()
# activate Linux/Darwin venvs:
if any(p in running_os for p in venv_platforms):
print("activated linux venv")
activate_this_file = "{}/venv/bin/activate_this.py".format(getcwd())
exec(open(activate_this_file).read(), dict(__file__=activate_this_file))
elif running_os == 'Windows':
print("Activating Windows venv")
activate_this_file = "{}\\winvenv\\Scripts\\activate_this.py".format(getcwd())
exec(open(activate_this_file).read(), dict(__file__=activate_this_file))
main()