mostaphaRoudsari/ladybug — pull request #69 by stgeorges (2014-07-09 08:24:06+00:00)
Title: Update Ladybug_Export Ladybug - .ghuser folder path

"Ladybug Export" component finds default folder for .ghuser files:

UOFolder = "C:\\Users\\" + os.getenv("USERNAME") + "\\AppData\\Roaming\\Grasshopper\\UserObjects\\"

Wind XP does not have the "Roaming" folder. So for Win XP the path is different. Maybe we could try this instead:

UOFolder = gh.GH_ComponentServer.GHUser_AppDataDirectory