Fix os-release open mode
- thanks to @Lvl4Sword for reporting
This commit is contained in:
parent
fd2603247d
commit
82c3c111b7
2
setup.py
2
setup.py
|
@ -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…
Reference in New Issue
Block a user