def jsr_debug(__D): Log = llog.Log() Var = llog.Variables() sc_name = __file__.replace("/", "\\").split("\\")[-1].split(".")[0].strip() if not Var.genDebugFile(): Log.logFile_create(sc_name) # create the log file if it doesn't exist Log.log(__D, sc_name)
def debug(debug_data, *args) -> None: debug_data += "".join(str(i) for i in args) Log = QaLog.Log(); LogVar = QaLog.Variables() sc_name = sys.argv[0].replace("/", "\\").split("\\")[-1].strip().split('.')[0].strip() # Script name if not LogVar.genDebugFile(): Log.logFile_create(sc_name) Log.log(data=debug_data, from_=sc_name) return
import qa_appinfo as qaai import qa_logging as llog import sys, os, traceback, cryptography, random import tkinter.messagebox as msb import qa_typeConvertor as QATypeConv import qa_errors as QAErrors import matplotlib.pyplot as plt import numpy as np import datetime as dt # Global Variables global log; global log_var log = llog.Log(); log_var = llog.Variables(); key = qaai.k CRError = cryptography.fernet.InvalidToken IDs = [] # Object IDs # if __name__ == "__main__": sys.exit('cannot run module standalone') # TODO: REMOVE THE COMMENT class GlobalData: stripSeqs = ['\ufeff'] bytes_encodings = [ 'utf-8', 'utf-16', 'utf-32', 'ascii',
import threading, os, sys, shutil from tkinter import messagebox as tkmsb import qa_appinfo as QaAI import qa_logging as log import qa_globalFlags as QaGF import qa_theme as Theme import qa_quizConfig as Configuration log_ref = log.Log() log_var_ref = log.Variables() apptitle = "QA Diagnostics" theme_GLOBAL_default_comment_header = """ # The "Credit" line will be kept as the first line; if not credit is present, the credit line will default to "Geetansh Gautam, Coding Made Fun" # Do not put a colon after 'Credit' or else the theme is considered invalid # Comments can be written with a '#' in the leading a line # Comments and empty lines will be ignored # This comment header will remain # All other comments will be overwritten """ class Diagnostics(threading.Thread): def __init__(self): self.thread = threading.Thread self.thread.__init__(self) self.start()
def __init__(self): self.Log = Log.Log() self.Log_var = Log.Variables()
import sys, json, os import qa_logging as log import json Log = log.Log() log_var = log.Variables() def debug(__debugData: str): global Log global log_var # Script Name try: sc_name = __file__.replace("/", "\\").split("\\")[-1].split(".")[0].strip() except: sc_name = sys.argv[0].replace( "/", "\\").split("\\")[-1].split(".")[0].strip() if not log_var.genDebugFile(): Log.logFile_create(sc_name) Log.log(__debugData, sc_name) # if __name__ == "__main__": # sys.exit(0) # Cannot run application by itself def flag_handler(ref, flags, __raiseError: bool = True):