This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
JDE/JDE/JDE.py

53 lines
1.2 KiB
Python

__author__ = "Jordonbc"
import logging
import time
logging.basicConfig(filename='JDE/Logs/' + str(time.strftime('%d-%m-%Y-%H-%M%p') + ".log"), level=logging.DEBUG)
jdeLog = logging.getLogger("JDE.py")
jdeLog.info("Importing tkinter")
try:
from tkinter import *
jdeLog.info("Import Successful")
except Exception as e:
jdeLog.critical(str(e))
jdeLog.info("Importing os")
try:
import os
jdeLog.info("Import Successful")
except Exception as e:
jdeLog.critical(str(e))
jdeLog.info("Importing JDE/Interfaces/login")
try:
from JDE.Interfaces import login
jdeLog.info("Import Successful!")
except Exception as e:
jdeLog.critical(str(e))
jdeLog.info("Importing JDE/Interfaces/desktop")
try:
from JDE.Interfaces import desktop
jdeLog.info("Import Successful!")
except Exception as e:
jdeLog.critical(str(e))
try:
loginApp = login.login
loginApp(windowTitle="JDE Login", widthHeight="1280x800", userDirs="Users/", bg="JDE/Images/background.png")
userFile = open("active", "r")
username = userFile.read()
userFile.close()
os.remove("active")
print(username)
desktopApp = desktop.desktop
desktopApp(username=username)
except Exception as e:
jdeLog.critical(str(e))