BasioMeusPuga / Lector

Qt based ebook reader
GNU General Public License v3.0
1.51k stars 207 forks source link

module os has no attribute uname #49

Closed sindzicat closed 6 years ago

sindzicat commented 6 years ago

Hello!

Python 3.6.5 on Windows 8.1:

C:\Dev\pyenv\Scripts\python.exe lector\__main__.py
Traceback (most recent call last):
  File "lector\__main__.py", line 35, in <module>
    from lector import sorter
  File "C:\Dev\pyenv\lib\site-packages\lector\sorter.py", line 42, in <module>
    if os.uname().sysname == 'Windows':
AttributeError: module 'os' has no attribute 'uname'

According uname documentation, os.uname is only availiable on Unix systems.

Please fix this.

Best regards, Andrey.

BasioMeusPuga commented 6 years ago

I've shifted to sys.platform. The documentation assures me it'll work now. Cheers.