Uranium
Application Framework
|
Public Member Functions | |
def | getPath |
def | getAllResourcesOfType |
def | getStoragePath |
def | getAllPathsForType |
def | getStoragePathForType |
def | addSearchPath |
def | removeSearchPath |
def | addType |
def | addStorageType |
def | getConfigStoragePath (cls) |
def | getDataStoragePath (cls) |
def | getCacheStoragePath (cls) |
def | getSearchPaths (cls) |
def | removeType |
def | factoryReset (cls) |
def | copyVersionFolder |
def | addExpectedDirNameInData |
Public Attributes | |
ApplicationVersion | |
Class to look up any form of resource used by Uranium or an application using Uranium
def UM.Resources.Resources.factoryReset | ( | cls, | |
None | |||
) |
Performs a factory reset, compressing the current state of configuration into an archive and emptying the resource folders. When calling this function, be sure to quit the application immediately afterwards, lest the save function write the configuration anew.
def UM.Resources.Resources.getCacheStoragePath | ( | cls, | |
str | |||
) |
Gets the cache storage path. This is where the application stores cache files.
def UM.Resources.Resources.getConfigStoragePath | ( | cls, | |
str | |||
) |
Gets the configuration storage path. This is where the application stores user configuration, such as preferences.
def UM.Resources.Resources.getDataStoragePath | ( | cls, | |
str | |||
) |
Gets the data storage path. This is where the application stores user files, such as profiles.
def UM.Resources.Resources.getSearchPaths | ( | cls, | |
Generator, | |||
str, | |||
None, | |||
None | |||
) |
Gets the search paths for resources. :return: A sequence of paths where resources might be.