File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 77 envPath = rootDir / "env"
88 srcPath = rootDir / "src"
99 reqsPath = rootDir / "reqs.txt"
10- logsPath = rootDir / "logs.txt"
1110
1211 pythonVersion = f"{ sys .version_info .major } .{ sys .version_info .minor } "
1312
3736 else :
3837 print ("ERROR: No site-packages path found" )
3938 exit ()
40-
41- print ("Creating Logs folder" )
42- logsPath .mkdir (parents = True , exist_ok = True )
4339
4440 print ("-" * 40 )
4541 print ("Virtual environment has been set up!\n " )
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ def createLogger() -> logging.Logger:
2626 formatter = logging .Formatter ("[%(asctime)s] %(levelname)s: %(message)s" , "%H:%M:%S" )
2727
2828 logFolder : Path = gcfg .folders .logs
29+ logFolder .mkdir (parents = True , exist_ok = True )
30+
2931 logFileName = datetime .now ().strftime ("%Y-%m-%d_%H-%M-%S" )
3032 logFilePath = logFolder / f"{ logFileName } .log"
3133
You can’t perform that action at this time.
0 commit comments