Skip to content

Commit

Permalink
Merge pull request #7 from quimey/master
Browse files Browse the repository at this point in the history
Import pkg_resources only when needed
  • Loading branch information
jvrsantacruz authored Apr 28, 2020
2 parents f618308 + 9686602 commit c2dba1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confight.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import logging
import argparse
import itertools
import pkg_resources
from collections import OrderedDict
try:
from ConfigParser import ConfigParser
Expand Down Expand Up @@ -244,6 +243,7 @@ def format_from_path(path):


def get_version():
import pkg_resources
return 'confight ' + pkg_resources.get_distribution('confight').version


Expand Down

0 comments on commit c2dba1e

Please sign in to comment.