From 2f01432e2f24abd508f5e4e14a34f9e328af9f25 Mon Sep 17 00:00:00 2001 From: anjakefala Date: Mon, 7 Oct 2024 20:28:07 -0700 Subject: [PATCH] [guides] pull guides from visidata module #2538 --- visidata/guide.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/visidata/guide.py b/visidata/guide.py index 6b9dd72aa..8e626460f 100644 --- a/visidata/guide.py +++ b/visidata/guide.py @@ -9,6 +9,7 @@ from visidata import vd, BaseSheet, Sheet, ItemColumn, Column, VisiData, ENTER, RowColorizer, AttrDict, MissingAttrFormatter from visidata import wraptext, Path, CellColorizer +import visidata guides_list = ''' GuideIndex ("A Guide to VisiData Guides (you are here)") @@ -81,7 +82,7 @@ @VisiData.api def addGuide(vd, name): - guideSource = Path(vd.pkg_resources_files('visidata')/f'guides/{name}.md') + guideSource = Path(vd.pkg_resources_files(visidata)/f'guides/{name}.md') if guideSource.exists(): vd.guides[name] = GuideSheet(name, source=guideSource)