Skip to content

Commit

Permalink
Move class ManPKIObject after setup env
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanF committed May 21, 2017
1 parent b5f6c83 commit 6182678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manpki/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,15 +413,15 @@ def envready():
return False
return True

if not envready():
setup()


class ManPKIConfig(object):
vardir = get_var_directory()
certdir = vardir + "/cert"
dbdir = vardir + "/db"

if not envready():
setup()

if not ConfigObject:
ConfigObject = configparser.ConfigParser()
configRead = False
Expand Down

0 comments on commit 6182678

Please sign in to comment.