From f8aa5bd3d93bd6343ea59e7e0fe9328ef3fc2e5f Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sun, 12 Nov 2023 17:13:08 +0100 Subject: [PATCH] Made function load_level() work. --- cowyeet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowyeet.py b/cowyeet.py index c42990d..ea50467 100644 --- a/cowyeet.py +++ b/cowyeet.py @@ -107,7 +107,7 @@ def window_size_reload(new_size): def load_level(lvl): - level_data = __import__("data.levels.1") + level_data = __import__("data.levels." + str(lvl), fromlist="data.levels") def main_menu_page():