summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-09-02 17:30:28 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-09-02 17:40:20 +0800
commit1e99eabb350b488e4474c7dbb1a953b1f383eed7 (patch)
treedf7651b9c4ae3614e0e589199278ceabd7a60fe5
parent1d2df4bc911c4d80a2b561dd96c73c692438584d (diff)
fixed .syspower not working(not created)
-rw-r--r--main.py1
-rw-r--r--test.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index 047cfca..5b13106 100644
--- a/main.py
+++ b/main.py
@@ -243,6 +243,7 @@ while True:
except KeyboardInterrupt:
continue
continue
+ open(f"{expanduser('~')/.syspower}", 'w').close()
except:
continue
diff --git a/test.txt b/test.txt
new file mode 100644
index 0000000..3a8c544
--- /dev/null
+++ b/test.txt
@@ -0,0 +1 @@
+asdfdasfhib