Skip to content

Commit

Permalink
removed depreciated package for version control
Browse files Browse the repository at this point in the history
  • Loading branch information
waoverholt committed Oct 5, 2023
1 parent e9383a8 commit b5c6791
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions el_gato/el_gato.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
import math
import json
from collections import defaultdict, Counter, OrderedDict
from pkg_resources import get_distribution
#from pkg_resources import get_distribution
from importlib import metadata
t0 = time.time()
script_filename = inspect.getframeinfo(inspect.currentframe()).filename
script_path = os.path.dirname(os.path.abspath(script_filename))
version = get_distribution('elgato').version
#version = get_distribution('elgato').version
version = metadata.version('elgato')

class Ref:
file = "Ref_Paris_mompS_2.fasta"
Expand Down Expand Up @@ -1814,7 +1816,7 @@ def main():
parser = get_args()
args = parser.parse_args()
if args.version:
print(version)
print(f'el_gato version: {version}')
sys.exit()
inputs = check_input_supplied(args, parser, inputs)
inputs = set_inputs(args, inputs)
Expand Down

0 comments on commit b5c6791

Please sign in to comment.