Skip to content

Commit 5d042e7

Browse files
committed
Remove use of pkg_resources
1 parent 5badf48 commit 5d042e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nbs/09_magics.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"from fastcore.basics import patch_to\n",
4747
"import re\n",
4848
"import urllib\n",
49-
"from pkg_resources import resource_filename\n",
49+
"from nbstata._resources import resource_path\n",
5050
"from bs4 import BeautifulSoup as bs\n",
5151
"import configparser"
5252
]
@@ -161,7 +161,7 @@
161161
" \n",
162162
" abbrev_dict = _construct_abbrev_dict()\n",
163163
" \n",
164-
" csshelp_default = resource_filename(\n",
164+
" csshelp_default = resource_path(\n",
165165
" 'nbstata', 'css/_StataKernelHelpDefault.css'\n",
166166
" )\n",
167167
"\n",

nbstata/magics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from fastcore.basics import patch_to
1515
import re
1616
import urllib
17-
from pkg_resources import resource_filename
17+
from ._resources import resource_path
1818
from bs4 import BeautifulSoup as bs
1919
import configparser
2020

@@ -71,7 +71,7 @@ class StataMagics():
7171

7272
abbrev_dict = _construct_abbrev_dict()
7373

74-
csshelp_default = resource_filename(
74+
csshelp_default = resource_path(
7575
'nbstata', 'css/_StataKernelHelpDefault.css'
7676
)
7777

0 commit comments

Comments
 (0)