Globals/__init__.py

changeset 0
de9c2efb9d02
child 13
1af94a91f439
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Globals/__init__.py	Mon Dec 28 16:03:33 2009 +0000
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2006 - 2009 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module defining common data to be used by all modules.
+"""
+
+import sys
+
+# names of the various settings objects
+settingsNameOrganization = "Eric5"
+settingsNameGlobal = "eric5"
+settingsNameRecent = "eric5recent"
+
+# key names of the various recent entries
+recentNameMultiProject = "MultiProjects"
+recentNameProject = "Projects"
+recentNameFiles = "Files"
+
+def isWindowsPlatform():
+    """
+    Function to check, if this is a Windows platform.
+    
+    @return flag indicating Windows platform (boolean)
+    """
+    return sys.platform.startswith("win")

eric ide

mercurial