2014-07-19 11:45:44 -04:00
|
|
|
import platform
|
|
|
|
|
|
|
|
try:
|
|
|
|
import unidecode
|
|
|
|
UNIDECODE_IMPORTED = True
|
|
|
|
except ImportError:
|
|
|
|
UNIDECODE_IMPORTED = False
|
|
|
|
|
2015-01-20 15:26:03 -05:00
|
|
|
|
2014-07-19 11:45:44 -04:00
|
|
|
def running_on_windows():
|
2015-01-20 15:26:03 -05:00
|
|
|
if platform.system() == 'Windows':
|
|
|
|
return 'Does not work on Windows.'
|
|
|
|
|
2014-07-19 11:45:44 -04:00
|
|
|
|
|
|
|
def no_unidecode_available():
|
|
|
|
if not UNIDECODE_IMPORTED:
|
2015-01-20 15:26:03 -05:00
|
|
|
return 'unidecode is not available.'
|