importdata.py在找不到importdata可执行文件时,在当前目录下寻找

This commit is contained in:
fasiondog 2017-07-23 03:31:07 +08:00
parent e891b40c0c
commit d1305099a5

View File

@ -39,7 +39,12 @@ if __name__ == "__main__":
print("%.2fm" % ((endtime-starttime)/60))
print("\n")
subprocess.call(['importdata'])
try:
subprocess.call(['importdata'])
except FileNotFoundError:
subprocess.call(['./importdata'])