Step towards fix of translation in Windows.
svn: r14268
This commit is contained in:
31
src/Utils.py
31
src/Utils.py
@ -212,37 +212,6 @@ def family_upper_name(family, db):
|
||||
name = mother.get_primary_name().get_upper_name()
|
||||
return name
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Platform determination functions
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
def lin():
|
||||
"""
|
||||
Return True if a linux system
|
||||
Note: Normally do as linux in else statement of a check !
|
||||
"""
|
||||
if platform.system() in LINUX:
|
||||
return True
|
||||
return False
|
||||
|
||||
def mac():
|
||||
"""
|
||||
Return True if a Macintosh system
|
||||
"""
|
||||
if platform.system() in MACOS:
|
||||
return True
|
||||
return False
|
||||
|
||||
def win():
|
||||
"""
|
||||
Return True if a windows system
|
||||
"""
|
||||
if platform.system() in WINDOWS:
|
||||
return True
|
||||
return False
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# String Encoding functions
|
||||
|
Reference in New Issue
Block a user