-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshared.py
More file actions
25 lines (19 loc) · 748 Bytes
/
Copy pathshared.py
File metadata and controls
25 lines (19 loc) · 748 Bytes
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
import sys
sys.path.append("lib")
sys.path.append('src')
import conf
import platformdep
import mylogging
VERSION = "0.3.3" # also in setup_script.iss
args = conf.get_args() # configuration dictionary
appName = "nameGUI"
CONFFOLDER = args.datadir if args.datadir else platformdep.get_conf_dir(appName.lower())
LOGFILENAME = "logfile.txt"
LOGFILENAMEPATH = CONFFOLDER + "/" + LOGFILENAME
LOGLEVELCONSOLE = mylogging.DEBUG
LOGLEVELFILE = mylogging.DEBUG
NAMENEWDBFILENAME = "nameNewDb.txt"
NAMENEWDBFILENAMEPATH = CONFFOLDER + "/" + NAMENEWDBFILENAME
def get_my_logger(name):
return mylogging.get_logger(name=name, levelConsole=LOGLEVELCONSOLE,
filename=LOGFILENAMEPATH, levelFile=LOGLEVELFILE)