Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
# Has to be same install method as this one. ;)
# Hangs if you've got recursive links in plugin dirs??
STRIP_VARIANTS = r"_?(32|64)?(el|eb|be|_le|_eb|_be|l)?$"
PLUGIN_DIR = Path(__file__).parent.parent.absolute()
MANUALS_DIR = Path(bn.user_directory()) / "manuals"

def find_manuals_in_siblings(arch_guess):
return glob.glob(f"{PLUGIN_DIR}/*{arch_guess}*/**/*.pdf", recursive=True)
return glob.glob(f"{MANUALS_DIR}/*{arch_guess}*/**/*.pdf", recursive=True)

manuals = {} # main cache, acceptable RAM use
def go(instr, action="Search", bv=None, arch=None):
Expand Down