From f794cad7bb8ca104e9bdebca9e3a2ca1c124d8b8 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 4 Nov 2020 23:36:54 +0000 Subject: Forgot to remove self. reference when copying some code. --- examples/guided.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index ee57e2b5..8295c849 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -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) -- cgit v1.2.3-54-g00ecf