From 48f62aba8db8efe3a109837cda52d04b1b9aad5b Mon Sep 17 00:00:00 2001 From: alyx Date: Sun, 24 Dec 2023 02:25:26 -0500 Subject: Fixed import cycle, began on docs. --- src/bbss/site.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/bbss/site.py') diff --git a/src/bbss/site.py b/src/bbss/site.py index 7e8871f..134ee8b 100644 --- a/src/bbss/site.py +++ b/src/bbss/site.py @@ -1,6 +1,6 @@ -from .sizes import SizeListFile -from .friends import FriendListFile -from . import DEFAULT_PATHS +from bbss.sizes import SizeListFile +import bbss.friends as friends +from bbss import DEFAULT_PATHS from typing import Optional from collections.abc import Sequence import requests @@ -25,17 +25,17 @@ class Site: if path is not None: if not check_path(path): - raise Exception("Oh noes there's nothing.") + raise Exception("No BBSS data found at user-supplied location!") else: - self.using_default = False + self.default_path = False else: for potential in DEFAULT_PATHS: if check_path(potential): path = potential - self.using_default = True + self.default_path = True break else: - raise Exception("Oh noes there's nothing(no path specified).") + raise Exception("No BBSS data found at default locations!") self.root = base + path @@ -46,6 +46,6 @@ class Site: self.has_sizes_txt = False self.sizes = SizeListFile("88x31", self.root) - self.friends = FriendListFile.from_url(self.root + "/friends.txt") + self.friends = friends.FriendListFile.from_url(self.root + "/friends.txt") __all__ = ["Site"] -- cgit v1.2.3-54-g00ecf