From c29a368e5aab12683f371253820d6adcb1710655 Mon Sep 17 00:00:00 2001 From: Shredmetal <131475927+Shredmetal@users.noreply.github.com> Date: Tue, 19 Dec 2023 18:44:01 +0800 Subject: [PATCH] Update mod_ac_loadout_puller.py --- scripts/python/mod_ac_loadout_puller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/python/mod_ac_loadout_puller.py b/scripts/python/mod_ac_loadout_puller.py index 1eddb92d..746ee34f 100644 --- a/scripts/python/mod_ac_loadout_puller.py +++ b/scripts/python/mod_ac_loadout_puller.py @@ -1,7 +1,7 @@ import os # save DCS.openbeta\\mods\\aircraft path as variable (you will need to put in the path to your own directory) -path = "C:\\Users\\USERNAME\\Saved Games\\DCS.openbeta\\Mods\\aircraft" +path = f"{os.environ['UserProfile']}\\Saved Games\\DCS.openbeta\\Mods\\aircraft" # write everything to a working file - to be deleted after getting rid of unnecessary trailing commas with open('working_file.lua', mode='w') as payload_file: