diff --git a/main.py b/main.py index d066e64..355d88b 100644 --- a/main.py +++ b/main.py @@ -10,9 +10,11 @@ import requests import codecs import csv -import apiRequests.querries as querries import time +import apiRequests.querries as querries +import config + _CACHEPATH = os.path.join(os.getcwd(), "cache") reload(logging) logging.basicConfig(filename="logs.log", filemode="w", @@ -20,10 +22,11 @@ def main(): - starting_time = time.time() print("Starting the script...") avatars_path = os.path.join(os.getcwd(), "avatars") + config.read_config() + starting_time = time.time() get_avatars(avatars_path) change_extensions_to_png(avatars_path) print(f"Finished in {round((time.time() - starting_time) * 100) / 100} seconds.")