user_preferences to preferences
changed it to adapt with latest api change
This commit is contained in:
parent
90658a74f6
commit
0601437749
|
@ -145,8 +145,8 @@ def get_fp():
|
|||
return os.path.sep.join(s)
|
||||
|
||||
def get_sdk_path(context):
|
||||
user_preferences = context.user_preferences
|
||||
addon_prefs = user_preferences.addons["armory"].preferences
|
||||
preferences = context.preferences
|
||||
addon_prefs = preferences.addons["armory"].preferences
|
||||
p = bundled_sdk_path()
|
||||
if os.path.exists(get_fp() + '/armsdk'):
|
||||
return get_fp() + '/armsdk'
|
||||
|
@ -312,3 +312,4 @@ def unregister():
|
|||
|
||||
if __name__ == "__main__":
|
||||
register()
|
||||
|
||||
|
|
Loading…
Reference in a new issue