def find(config_file): return PathTools.find(config_file, Logging.directories)
def find(file_name, size): icon_directory = os.path.join(Path.share_directory, 'icons', '%ux%u' % (size, size)) return PathTools.find(file_name, (icon_directory,))
# You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # #################################################################################################### #################################################################################################### import os #################################################################################################### import LaptopControlPanel.Tools.Path as PathTools # due to Path class #################################################################################################### _this_file = PathTools.to_absolute_path(__file__) class Path(object): module_directory = PathTools.parent_directory_of(_this_file, step=2) config_directory = os.path.dirname(_this_file) share_directory = os.path.realpath(os.path.join(config_directory, '..', '..', 'share')) #################################################################################################### class Logging(object): default_config_file = 'logging.yml' directories = (Path.config_directory,) ##############################################
def find(file_name, size): icon_directory = os.path.join(Path.share_directory, 'icons', '%ux%u' % (size, size)) return PathTools.find(file_name, (icon_directory, ))
class Path(object): module_directory = PathTools.parent_directory_of(_this_file, step=2) config_directory = os.path.dirname(_this_file) share_directory = os.path.realpath( os.path.join(config_directory, '..', '..', 'share'))
# You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # #################################################################################################### #################################################################################################### import os #################################################################################################### import LaptopControlPanel.Tools.Path as PathTools # due to Path class #################################################################################################### _this_file = PathTools.to_absolute_path(__file__) class Path(object): module_directory = PathTools.parent_directory_of(_this_file, step=2) config_directory = os.path.dirname(_this_file) share_directory = os.path.realpath( os.path.join(config_directory, '..', '..', 'share')) #################################################################################################### class Logging(object):