Skip to content

Commit

Permalink
add system judge function
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed May 11, 2016
1 parent 00874cb commit b167314
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions feeluown/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import platform
import time
from functools import wraps
from PyQt5.QtGui import QColor
Expand Down Expand Up @@ -39,3 +40,15 @@ def wrapper(*args, **kwargs):
% (func.__name__, elapsed_time))
return result
return wrapper


def is_linux():
if platform.system() == 'Linux':
return True
return False


def is_osx():
if platform.system() == 'Darwin':
return True
return False

0 comments on commit b167314

Please sign in to comment.