Skip to content

Commit

Permalink
Rm usage of deprecated pkg_resources for path resolution
Browse files Browse the repository at this point in the history
Re:#814
  • Loading branch information
machawk1 committed Apr 24, 2024
1 parent 31e8beb commit e88627a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ipwb/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import sys
import os
import importlib.resources
import ipfshttpclient as ipfsapi
import json
import subprocess
Expand Down Expand Up @@ -1018,8 +1019,10 @@ def get_index_file_full_path(cdxj_file_path=INDEX_FILE):
if os.path.isfile(cdxj_file_path):
return cdxj_file_path

index_file_name = pkg_resources.resource_filename(
__name__, index_file_path)
# index_file_name = pkg_resources.resource_filename(
# __name__, index_file_path)
index_file_name = importlib.resources.files(
__name__).joinpath(index_file_path)
return index_file_name


Expand Down

0 comments on commit e88627a

Please sign in to comment.