Forgot to remove self. reference when copying some code.

This commit is contained in:
Anton Hvornum 2020-11-04 23:36:54 +00:00
parent fd3c29f486
commit f794cad7bb
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ log_root = os.path.join(os.path.expanduser('~/'), '.cache/archinstall')
if not os.path.isdir(log_root):
os.makedirs(log_root)
archinstall.storage['logfile'] = f"{log_root}/install-session_{self.init_time}.{self.milliseconds}.log"
init_time = time.strftime('%Y-%m-%d %H:%M:%S')
milliseconds = int(str(time.time()).split('.')[1])
archinstall.storage['logfile'] = f"{log_root}/install-session_{init_time}.{milliseconds}.log"
"""
This signal-handler chain (and global variable)