Skip to content

Commit

Permalink
windows fixes, added todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Posthuma committed Sep 3, 2020
1 parent 6c7302c commit b13892f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion intterra-airborne-dsa.bat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
python main.py
python main.py
pause
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
import re
import settings
from signal import signal, SIGINT
s3 = boto3.client('s3')
s3 = boto3.client('s3') # TODO: pass keys from json config (optionally)

def run():
# init
bucket = settings.BUCKET
bucket = settings.BUCKET # TODO: Convert to persistant .json config
now = datetime.utcnow()
dir_path = os.path.dirname(os.path.realpath(__file__))
welcome()
Expand All @@ -30,7 +30,7 @@ def run():
else:
answer = ''
while answer != 'yes' and answer != 'no':
print(f'Use current mission (yes/no): "{mission_name}" from {mission_timestamp.ctime()}?', end=' ')
print(f'Use current mission (yes/no): "{mission_name}" from {mission_timestamp.ctime()}?')
answer = sys.stdin.readline().rstrip('\n').rstrip('\n')
if answer == 'no':
mission_name = get_mission_from_input()
Expand All @@ -49,7 +49,7 @@ def run():
def get_mission_from_input():
name = ''
while not re.match(r'^[0-9a-z]+$', name, re.IGNORECASE):
print('Please enter mission name (alphanumeric): ', end='')
print('Please enter mission name (alphanumeric): ')
name = sys.stdin.readline().rstrip('\n').rstrip('\n')
return name

Expand Down

0 comments on commit b13892f

Please sign in to comment.