移除了自动隐藏文件的功能

This commit is contained in:
13632530821
2022-11-19 20:23:38 +08:00
parent 78a0932643
commit a9698b80ee

View File

@@ -64,7 +64,7 @@ percent_override = True
try: try:
with excel.open_workbook(filename) as excel_data: with excel.open_workbook(filename) as excel_data:
table = excel_data.sheets()[0] table = excel_data.sheets()[0]
win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_HIDDEN) # win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_HIDDEN)
except FileNotFoundError: except FileNotFoundError:
msgbox.showerror('找不到数据库文件', '在相同目录下未能找到 names.xls 文件,请确认您的文件存在') msgbox.showerror('找不到数据库文件', '在相同目录下未能找到 names.xls 文件,请确认您的文件存在')
sys.exit() sys.exit()
@@ -84,7 +84,7 @@ down_id = []
try: try:
with open(configname,'r') as file: with open(configname,'r') as file:
win32api.SetFileAttributes(configname,win32con.FILE_ATTRIBUTE_HIDDEN) # win32api.SetFileAttributes(configname,win32con.FILE_ATTRIBUTE_HIDDEN)
config = file.read().splitlines() config = file.read().splitlines()
for unit in config: for unit in config:
temp = unit.split(",") temp = unit.split(",")