Fix os-release open mode

- thanks to @Lvl4Sword for reporting
master
Peter Šurda 6 years ago
parent fd2603247d
commit 82c3c111b7
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

@ -100,7 +100,7 @@ def detectOS():
elif sys.platform.startswith('win'):
detectOS.result = "Windows"
elif os.path.isfile("/etc/os-release"):
with open("/etc/os-release", 'rt') as osRelease:
with open("/etc/os-release", 'r') as osRelease:
version = None
for line in osRelease:
if line.startswith("NAME="):

Loading…
Cancel
Save