Addon: cleanup, use relative imports where possible
This commit is contained in:
parent
21d552c600
commit
4f7c11d59a
@ -25,7 +25,7 @@ def flamenco_api_client(manager_url: str) -> _ApiClient:
|
||||
|
||||
dependencies.preload_modules()
|
||||
|
||||
from flamenco import manager
|
||||
from . import manager
|
||||
|
||||
configuration = manager.Configuration(host=manager_url.rstrip("/"))
|
||||
_flamenco_client = manager.ApiClient(configuration)
|
||||
|
@ -8,7 +8,7 @@ def preload_modules() -> None:
|
||||
if "dateutil" in sys.modules:
|
||||
return
|
||||
|
||||
from flamenco import wheels
|
||||
from . import wheels
|
||||
|
||||
wheels.load_wheel_global("six", "six")
|
||||
wheels.load_wheel_global("dateutil", "python_dateutil")
|
||||
|
@ -6,7 +6,7 @@ import bpy
|
||||
|
||||
def discard_flamenco_client(prefs, context):
|
||||
"""Discard any cached Flamenco client after the Manager URL changes."""
|
||||
from flamenco import comms
|
||||
from . import comms
|
||||
|
||||
comms.discard_flamenco_data()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user