Globals/__init__.py

changeset 945
8cd4d08fa9f6
parent 882
34b86be88bf0
child 1162
ab292b7f4f8a
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
18 recentNameMultiProject = "MultiProjects" 18 recentNameMultiProject = "MultiProjects"
19 recentNameProject = "Projects" 19 recentNameProject = "Projects"
20 recentNameFiles = "Files" 20 recentNameFiles = "Files"
21 recentNameHosts = "Hosts" 21 recentNameHosts = "Hosts"
22 22
23
23 def isWindowsPlatform(): 24 def isWindowsPlatform():
24 """ 25 """
25 Function to check, if this is a Windows platform. 26 Function to check, if this is a Windows platform.
26 27
27 @return flag indicating Windows platform (boolean) 28 @return flag indicating Windows platform (boolean)
28 """ 29 """
29 return sys.platform.startswith("win") 30 return sys.platform.startswith("win")
31
30 32
31 def isMacPlatform(): 33 def isMacPlatform():
32 """ 34 """
33 Function to check, if this is a Mac platform. 35 Function to check, if this is a Mac platform.
34 36
35 @return flag indicating Mac platform (boolean) 37 @return flag indicating Mac platform (boolean)
36 """ 38 """
37 return sys.platform == "darwin" 39 return sys.platform == "darwin"
38 40
41
39 def isLinuxPlatform(): 42 def isLinuxPlatform():
40 """ 43 """
41 Function to check, if this is a Linux platform. 44 Function to check, if this is a Linux platform.
42 45
43 @return flag indicating Linux platform (boolean) 46 @return flag indicating Linux platform (boolean)

eric ide

mercurial