Browse Source

Fixed out of range error when doing first time setup

pull/136/head
Vannen 11 months ago
parent
commit
9420959c12
  1. 4
      __main__.py

4
__main__.py

@ -46,10 +46,10 @@ for file in required_files:
print(f"Successfully got {file_name}")
else:
print(f"Already have {file_name} continuing")
if os.path.isfile("./dependencies/" + required_files[4][0]) and not os.path.isfile("./dependencies/aircrafts.json"):
if os.path.isfile("./dependencies/" + required_files[3][0]) and not os.path.isfile("./dependencies/aircrafts.json"):
print("Extracting Mictronics DB")
from zipfile import ZipFile
with ZipFile("./dependencies/" + required_files[4][0], 'r') as mictronics_db:
with ZipFile("./dependencies/" + required_files[3][0], 'r') as mictronics_db:
mictronics_db.extractall("./dependencies/")
main_config = configparser.ConfigParser()

Loading…
Cancel
Save