Skip to content

Commit

Permalink
修复了Windows下的若干Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienShui committed Jul 2, 2018
1 parent 91fe27f commit 91fd700
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions upcnet.py
Expand Up @@ -120,13 +120,14 @@ def main():
print('Too many args')
autoexit(1)

elif sys.argv[1] == 'reset':
if sys.argv[1] == 'reset':
if os.path.exists(filePath):
os.remove(filePath)
print('Reset successful')
autoexit(0)

else: print('Wrong args')
autoexit(0)
print('Wrong args')
autoexit(1)

else: upcnet()

Expand Down

0 comments on commit 91fd700

Please sign in to comment.