Skip to content

Commit

Permalink
[guides] pull guides from visidata module #2538
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 8, 2024
1 parent b892832 commit 2f01432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visidata/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 2f01432

Please sign in to comment.