aboutsummaryrefslogtreecommitdiffstats
path: root/src/bbss/site.py
diff options
context:
space:
mode:
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"]