aboutsummaryrefslogtreecommitdiffstats
path: root/src/bbss/site.py
diff options
context:
space:
mode:
authoralyx <alyx@aleteoryx.me>2023-12-24 02:25:26 -0500
committeralyx <alyx@aleteoryx.me>2023-12-24 02:25:26 -0500
commit48f62aba8db8efe3a109837cda52d04b1b9aad5b (patch)
tree7e1c810c48ff6707de7aa044d9ec87e15ae11178 /src/bbss/site.py
parente21e42e832e4ac633a9d48f6e30c34a9011008bc (diff)
downloadbbss.py-48f62aba8db8efe3a109837cda52d04b1b9aad5b.tar.gz
bbss.py-48f62aba8db8efe3a109837cda52d04b1b9aad5b.tar.bz2
bbss.py-48f62aba8db8efe3a109837cda52d04b1b9aad5b.zip
Fixed import cycle, began on docs.
Diffstat (limited to 'src/bbss/site.py')
-rw-r--r--src/bbss/site.py16
1 files changed, 8 insertions, 8 deletions
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"]