-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
41 lines (28 loc) · 917 Bytes
/
run.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
39
40
41
# THIS FILE IS A PART OF VCStudio
# PYTHON 3
import sys
# If any arguments
console_force = False
if len(sys.argv) > 1 and sys.argv[1] == "-c":
console_force = True
# Importing various things
from settings import settings
from settings import talk
try:
# The :) I'm Happy To See You
talk.alert(talk.text("imissedyouwelcommessage"))
if not console_force:
# I'm importing it here so it wont give problems on non GTK systems.
from project_manager import pm_gtk
pm_gtk.run()
else:
from project_manager import pm_console
pm_console.run()
except Exception:
# If some mistake happened
# Testing the software
from troubleshooter import troubleshooter
if not settings.read("Python-is-good"):
# Project Manager console version
from project_manager import pm_console
pm_console.run()