def rel_path(*file_path):
        '''
        gives relative paths to files, works when frozen or unfrozen
        to get the root path just pass in the string __file__
        '''
        if hasattr(sys, 'frozen'):
            if file_path[0] == '__file__':
                return sys.executable
            return os.path.join(os.path.dirname(sys.executable), *file_path)
        else:
            try:
                main_file = AppBuilder.main_file
            except AttributeError:
                # The first call setting up the instance
                main_file = inspect.stack()[1][1]
            if file_path[0] == '__file__':
                return os.path.realpath(main_file)
            return os.path.join(os.path.dirname(main_file), *file_path)
gives relative paths to files, works when frozen or unfrozen
        to get the root path just pass in the string __file__