From 164326f56e1aa4b81d3047a1dac3c06053d91173 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 12 Jun 2021 14:27:35 -0400 Subject: [PATCH] Update checks the OS platform before changing directories. Also added message when switching to lookup mode. --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b9b29c7..c6c1e45 100644 --- a/main.py +++ b/main.py @@ -38,10 +38,13 @@ while True: elif command == 'CARD': Card = 1 elif command == 'UPDATE': - os.system('cd ~/libraryClient') - os.system('git pull') + if os.name != 'nt': + os.system('cd ~/libraryClient') + else: + os.system('git pull') elif command == 'LU': Mode=3 + print('Mode lookup') elif command == '': pass else: