Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-04 23:36:54 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-04 23:36:54 +0000
commitf794cad7bb8ca104e9bdebca9e3a2ca1c124d8b8 (patch)
tree81d4998f6a42532d66df34af34737a586f4904c9 /examples
parentfd3c29f48671bf0b1de9b9a0f424d291f6ee4b74 (diff)
Forgot to remove self. reference when copying some code.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py4
1 files changed, 3 insertions, 1 deletions
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)