Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 28, 2023
1 parent 883e451 commit 8c54db0
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions ovos_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
from functools import lru_cache, wraps
from os.path import isdir, join
from threading import Thread, Event
from time import monotonic_ns
from time import sleep
from time import monotonic_ns, sleep

import kthread

# TODO: Deprecate below imports
from ovos_utils.file_utils import resolve_ovos_resource_file, resolve_resource_file
from ovos_utils.network_utils import get_ip, get_external_ip, is_connected_dns, is_connected_http, is_connected
from ovos_utils.log import LOG, deprecated
from ovos_utils.log import LOG


def threaded_timeout(timeout=5):
Expand Down Expand Up @@ -70,22 +66,6 @@ def __get__(self, owner_self, owner_cls):
return self.fget(owner_cls)


@deprecated("Anything depending on `mycroft`"
"should install `ovos-core` as a dependency", "0.1.0")
def ensure_mycroft_import():
# TODO: Deprecate in 0.1.0
try:
import mycroft
except ImportError:
import sys
from ovos_utils import get_mycroft_root
MYCROFT_ROOT_PATH = get_mycroft_root()
if MYCROFT_ROOT_PATH is not None:
sys.path.append(MYCROFT_ROOT_PATH)
else:
raise


def timed_lru_cache(
_func=None, *, seconds: int = 7000, maxsize: int = 128, typed: bool = False
):
Expand Down

0 comments on commit 8c54db0

Please sign in to comment.