change config location to ~/.config/sehistory
This commit is contained in:
@ -29,7 +29,7 @@ class SEHistory(InfluxDBWrapper):
|
|||||||
self.instrument = instrument
|
self.instrument = instrument
|
||||||
parser = ConfigParser()
|
parser = ConfigParser()
|
||||||
parser.optionxform = str
|
parser.optionxform = str
|
||||||
parser.read([Path('~/.sehistory').expanduser()])
|
parser.read([Path('~/.config/sehistory').expanduser()])
|
||||||
section = parser[dbname] if dbname else parser[parser.sections()[0]]
|
section = parser[dbname] if dbname else parser[parser.sections()[0]]
|
||||||
super().__init__(*(section[k] for k in ('uri', 'token', 'org', 'bucket')), access=access)
|
super().__init__(*(section[k] for k in ('uri', 'token', 'org', 'bucket')), access=access)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user