mirror of
https://github.com/csd4ni3l/siege-calendar.git
synced 2026-01-01 12:33:47 +01:00
Fix Windows not being able to open the wakatime cfg due to BOM existence
This commit is contained in:
@@ -12,7 +12,8 @@ class Client:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
self.config = configparser.ConfigParser()
|
self.config = configparser.ConfigParser()
|
||||||
self.config.read(wakatime_config_path)
|
with open(wakatime_config_path, encoding="utf-8-sig") as f:
|
||||||
|
self.config.read_file(f)
|
||||||
|
|
||||||
self.api_url = HACKATIME_URL
|
self.api_url = HACKATIME_URL
|
||||||
self.api_key = self.config["settings"]["api_key"]
|
self.api_key = self.config["settings"]["api_key"]
|
||||||
|
|||||||
Reference in New Issue
Block a user