Example #1
0
 def __create_profile_manager_folderstructure(self):
     try:
         os.mkdir(
             os.path.join(
                 Pathfinder.get_wonderdraft_userfolder(),
                 YMLConfigReader.get_changeling_manager_directory_name()))
     except OSError as exception:
         logging.getLogger('debug').exception(
             'You can\'t create the profile manager folder twice')
Example #2
0
 def __create_deactivated_folder_generic(self, path_splitter, name):
     try:
         os.mkdir(
             os.path.join(
                 Pathfinder.get_wonderdraft_userfolder(),
                 YMLConfigReader.get_changeling_manager_directory_name(),
                 path_splitter))
     except OSError as exception:
         logging.getLogger('debug').exception(
             'You can\'t create the inactive ' + name + ' folder twice')
Example #3
0
 def __sanity_check_inactive_themes_dir(self):
     return os.path.exists(
         os.path.join(
             Pathfinder.get_wonderdraft_userfolder(),
             YMLConfigReader.get_changeling_manager_directory_name(),
             YMLConfigReader.get_deactivated_themes_folder_name()))
Example #4
0
 def __sanity_check_main_dir(self):
     return os.path.exists(
         os.path.join(
             Pathfinder.get_wonderdraft_userfolder(),
             YMLConfigReader.get_changeling_manager_directory_name()))