iotile.core.utilities.rcfile

Module Contents

class RCFile(name)

A simple object that represents a configuration file stored in a cross-platform way by looking for the appropriate configuration directory on each platform. The file is named NAME_config.txt and its contents are accessible via the .contents attribute of the class.

_build_path(self)
save(self)

Update the configuration file on disk with the current contents of self.contents. Previous contents are overwritten.