return os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../current_profile.ini"))\r
\r
def loadGlobalProfile(filename):\r
- "Read a configuration file as global config"\r
+ #Read a configuration file as global config\r
global globalProfileParser\r
globalProfileParser = ConfigParser.ConfigParser()\r
globalProfileParser.read(filename)\r
\r
def saveGlobalProfile(filename):\r
+ #Save the current profile to an ini file\r
globalProfileParser.write(open(filename, 'w'))\r
\r
+def resetGlobalProfile():\r
+ #Create an empty profile with no settings, so everything gets default settings.\r
+ global globalProfileParser\r
+ globalProfileParser = ConfigParser.ConfigParser()\r
+\r
def getProfileSetting(name):\r
if name in profileDefaultSettings:\r
default = profileDefaultSettings[name]\r