Skip to content

Commit

Permalink
update lib version check method
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee authored Aug 2, 2023
1 parent 2dd8818 commit 59a87d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import sys
import os
import os.path
from importlib.metadata import version as lib_version
import ipaddress
import multiprocessing
from urllib.parse import urlencode, urlparse, parse_qs
Expand All @@ -69,7 +70,6 @@
from email.utils import (format_datetime,
make_msgid)
import hashlib
import pkg_resources
import re
import string
from itertools import islice, chain
Expand All @@ -94,7 +94,7 @@
import labellang

def getGYBVersion(divider="\n"):
api_client_ver = pkg_resources.get_distribution("google-api-python-client").version
api_client_ver = lib_version('google-api-python-client')
return ('Got Your Back %s~DIV~%s~DIV~%s - %s~DIV~Python %s.%s.%s %s-bit \
%s~DIV~google-api-client %s~DIV~%s %s' % (__version__, __website__, __author__, __email__,
sys.version_info[0], sys.version_info[1], sys.version_info[2],
Expand Down

0 comments on commit 59a87d6

Please sign in to comment.