Update checks the OS platform before changing directories. Also added message when switching to lookup mode.
This commit is contained in:
3
main.py
3
main.py
@@ -38,10 +38,13 @@ while True:
|
|||||||
elif command == 'CARD':
|
elif command == 'CARD':
|
||||||
Card = 1
|
Card = 1
|
||||||
elif command == 'UPDATE':
|
elif command == 'UPDATE':
|
||||||
|
if os.name != 'nt':
|
||||||
os.system('cd ~/libraryClient')
|
os.system('cd ~/libraryClient')
|
||||||
|
else:
|
||||||
os.system('git pull')
|
os.system('git pull')
|
||||||
elif command == 'LU':
|
elif command == 'LU':
|
||||||
Mode=3
|
Mode=3
|
||||||
|
print('Mode lookup')
|
||||||
elif command == '':
|
elif command == '':
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user