зеркало из https://github.com/mozilla/ff-tool.git
Revert mozinfo commit (Fixes #98)
This commit is contained in:
Родитель
58d1c989d3
Коммит
236208704e
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import mozinfo
|
||||
import platform
|
||||
import re
|
||||
|
||||
from outlawg import Outlawg
|
||||
|
||||
Log = Outlawg()
|
||||
|
@ -10,7 +12,16 @@ class OSHandler(object):
|
|||
|
||||
@staticmethod
|
||||
def get_os():
|
||||
return mozinfo.os
|
||||
system = platform.system().lower()
|
||||
system = re.split('[-_]', system, maxsplit=1).pop(0)
|
||||
|
||||
if system == "cygwin":
|
||||
return "windows"
|
||||
|
||||
if system == "darwin":
|
||||
return "mac"
|
||||
|
||||
return system
|
||||
|
||||
@classmethod
|
||||
def is_linux(cls):
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
outlawg==0.1.0
|
||||
mozdownload==1.20.2
|
||||
mozinfo==0.9
|
||||
mozprofile==0.28
|
||||
|
|
Загрузка…
Ссылка в новой задаче