Fix accessor method to import params in Coonfig. Make cli print using accessor
This commit is contained in:
parent
c215360a92
commit
4f64464df3
|
@ -439,11 +439,13 @@ class Config:
|
||||||
def get_import_parameters(self):
|
def get_import_parameters(self):
|
||||||
imp = {}
|
imp = {}
|
||||||
try:
|
try:
|
||||||
imp['imp-callFpdbHud'] = self.imp.callFpdbHud
|
imp['callFpdbHud'] = self.callFpdbHud
|
||||||
imp['hud-defaultInterval'] = int(self.imp.interval)
|
imp['interval'] = self.interval
|
||||||
except: # Default import parameters
|
imp['hhArchiveBase'] = self.hhArchiveBase
|
||||||
imp['imp-callFpdbHud'] = True
|
except: # Default params
|
||||||
imp['hud-defaultInterval'] = 10
|
imp['callFpdbHud'] = 10
|
||||||
|
imp['interval'] = True
|
||||||
|
imp['hhArchiveBase'] = "~/.fpdb/HandHistories/"
|
||||||
return imp
|
return imp
|
||||||
|
|
||||||
def get_default_paths(self, site = "PokerStars"):
|
def get_default_paths(self, site = "PokerStars"):
|
||||||
|
@ -562,7 +564,9 @@ if __name__== "__main__":
|
||||||
print "----------- END MUCKED WINDOW FORMATS -----------"
|
print "----------- END MUCKED WINDOW FORMATS -----------"
|
||||||
|
|
||||||
print "\n----------- IMPORT -----------"
|
print "\n----------- IMPORT -----------"
|
||||||
# print c.imp
|
tmp = c.get_import_parameters()
|
||||||
|
for param in tmp:
|
||||||
|
print " " + str(param) + ": " + str(tmp[param])
|
||||||
print "----------- END IMPORT -----------"
|
print "----------- END IMPORT -----------"
|
||||||
|
|
||||||
print "\n----------- TABLE VIEW -----------"
|
print "\n----------- TABLE VIEW -----------"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user