From 8eca3227bf544ff5a6403430f5ad34ff09adcae9 Mon Sep 17 00:00:00 2001 From: titanz18 Date: Fri, 10 Mar 2023 11:30:29 +0100 Subject: [PATCH] edited python script, so it doesnt matter anymore, where the git pull is located at --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 1f3a640b..a778f31d 100644 --- a/main.py +++ b/main.py @@ -58,8 +58,9 @@ if key is None and add_key == False: elif key is not None and add_key == False: homeserver_key = key print(key) -yml_path= "/home/{}/testing/matrix-docker-ansible-deploy/inventory/host_vars/matrix.{}".format(user, domain) -hosts_path = "/home/{}/testing/matrix-docker-ansible-deploy/inventory/".format(user) +file_path == os.path.realpath(__file__) +yml_path= "{}/inventory/host_vars/matrix.{}".format(file_path, domain) +hosts_path = "{}/inventory/".format(file_path) try: if not os.path.exists(yml_path): os.makedirs(yml_path)