Skip to content

Commit

Permalink
replace pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
rvhonorato committed Oct 3, 2024
1 parent 062504e commit b56636a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/prodigy_prot/modules/freesasa_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
import subprocess # nosec
import sys
import tempfile

import pkg_resources
from importlib.resources import files

try:
from Bio.PDB import PDBIO, PDBParser, Select
Expand Down Expand Up @@ -195,10 +194,9 @@ def execute_freesasa_api(structure):

config_path = os.environ.get(
"FREESASA_PAR",
pkg_resources.resource_filename("prodigy_prot", "naccess.config"),
str(files("prodigy_prot").joinpath("naccess.config")),
)
classifier = Classifier(config_path)
pkg_resources.cleanup_resources()

# classifier = freesasa.Classifier( os.environ["FREESASA_PAR"])
# Disable
Expand Down

0 comments on commit b56636a

Please sign in to comment.