--- a/CondaInterface/__init__.py Sun Feb 10 17:24:10 2019 +0100 +++ b/CondaInterface/__init__.py Sun Feb 10 19:46:34 2019 +0100 @@ -22,6 +22,7 @@ __CondaVersion = tuple() __CondaVersionStr = "" __CondaRootPrefix = "" +__CondaUserConfig = "" __initialized = False @@ -30,7 +31,8 @@ """ Private module function to (re-)initialize the conda interface. """ - global __CondaVersionStr, __CondaVersion, __CondaRootPrefix, __initialized + global __CondaVersionStr, __CondaVersion, __CondaRootPrefix, \ + __CondaUserConfig, __initialized if not __initialized: exe = Preferences.getConda("CondaExecutable") @@ -61,6 +63,7 @@ int(i) for i in __CondaVersionStr.split(".") ) __CondaRootPrefix = jsonDict["root_prefix"] + __CondaUserConfig = jsonDict["rc_path"] __initialized = True @@ -98,6 +101,17 @@ return __CondaRootPrefix +def userConfiguration(): + """ + Module function to get the path of the user configuration file. + + @return path of the user configuration file + @rtype str + """ + __initializeCondaInterface() + return __CondaUserConfig + + def resetInterface(): """ Module function to reset the conda interface.