def GetLoader(): """Finds the loader to use @return: path to profile loader @note: path may not exist, only returns the path to where the loader should be. """ cbase = util.GetUserConfigBase() loader = os.path.join(cbase, u"profiles", u".loader2") return loader
def SaveStyleSheet(self, sheetname=None): """Save the changes to the currently selected StyleSheet @return: bool """ # Ensure user styles directory exists to save style sheet to if ed_glob.CONFIG['STYLES_DIR'] == ed_glob.CONFIG['SYS_STYLES_DIR']: path = util.GetUserConfigBase() user_config = os.path.join(path, 'styles') if not os.path.exists(user_config): try: os.mkdir(user_config) except (OSError, IOError), msg: util.Log("[style_editor][err] %s" % msg) else: ed_glob.CONFIG['STYLES_DIR'] = user_config