taniwha / io_object_mu

Python .mu reader/writer and blender import/export addon
GNU General Public License v2.0
122 stars 51 forks source link

Hard coded path in import_craft.py #11

Closed nbgibson closed 6 years ago

nbgibson commented 7 years ago

Starting at line 33 of import_craft.py

model_by_path = {}
loaded_models = {}
parts = {}
resources = {}
gamedata = "/home/bill/ksp/KSP_linux-ckan/GameData"
loaded_models_object = None
parts_object = None

This causes blender to throw a fit if not fooled around with as the path does not exist in most systems. Please advise.

taniwha commented 7 years ago

Set to somewhere appropriate, but yeah, I need to do something about it.

Vuzin commented 6 years ago

@taniwha I've changed the path in import_craft.py to my GameData folder but it gives me an error in blender when I try to enable the addon. This is on Windows 10 capture image

taniwha commented 6 years ago

I don't know about the exception you got, but the hard-coding is fixed: the path is specifiable in the addon's panel in user preferences. For that, closing. If the exception persists, please raise another issue.