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: