Get Blender scripts path
There is a few nice helper methods hidden in the bpy.utils module space. For instance, calling

bpy.utils.script_paths()


will return all current Blender paths where Python modules can be put. Even if you (like I do on my system) redirect the Scripts Folder to a custom location, so they stay around when updating Blender, using this method you'll get a valid pointer. See this output here:



But you could also use

x = bpy.utils.script_path_user()


to retrieve the current location of your user scripts. This will return a string, and as a fallback your scripts home directory if no custom path was set.