mirror of
https://github.com/HChaZZY/Random-Picker.git
synced 2025-12-06 10:33:50 +08:00
移除了自动隐藏文件的功能
This commit is contained in:
4
点名器.pyw
4
点名器.pyw
@@ -64,7 +64,7 @@ percent_override = True
|
||||
try:
|
||||
with excel.open_workbook(filename) as excel_data:
|
||||
table = excel_data.sheets()[0]
|
||||
win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_HIDDEN)
|
||||
# win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_HIDDEN)
|
||||
except FileNotFoundError:
|
||||
msgbox.showerror('找不到数据库文件', '在相同目录下未能找到 names.xls 文件,请确认您的文件存在')
|
||||
sys.exit()
|
||||
@@ -84,7 +84,7 @@ down_id = []
|
||||
|
||||
try:
|
||||
with open(configname,'r') as file:
|
||||
win32api.SetFileAttributes(configname,win32con.FILE_ATTRIBUTE_HIDDEN)
|
||||
# win32api.SetFileAttributes(configname,win32con.FILE_ATTRIBUTE_HIDDEN)
|
||||
config = file.read().splitlines()
|
||||
for unit in config:
|
||||
temp = unit.split(",")
|
||||
|
||||
Reference in New Issue
Block a user