Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

        def load_json_asset(json_path):
    # Load mapping table
    try:
        json_handle = open(get_absolute_path(json_path))
        j = json.load(json_handle)
    except IOError as e:
        LOG.error(str(e))
    except ValueError as e:
        LOG.error(str(e))
    else:
        return j
    return None
        


src/t/u/turbulenz_local-1.1.4/turbulenz_local/models/game.py   turbulenz_local(Download)
from turbulenz_local.models.apiv1.store import StoreList, StoreError, \
                                                   StoreUnsupported
from turbulenz_local.tools import get_absolute_path, create_dir, load_json_asset
 
 
 
            # Load mapping table
            j = load_json_asset(os.path.join(game_path, self.mapping_table))
            if j:
                # pylint: disable=E1103

src/t/u/turbulenz_local-HEAD/turbulenz_local/models/game.py   turbulenz_local(Download)
from turbulenz_local.models.apiv1.store import StoreList, StoreError, \
                                                   StoreUnsupported
from turbulenz_local.tools import get_absolute_path, create_dir, load_json_asset
 
 
 
            # Load mapping table
            j = load_json_asset(os.path.join(game_path, self.mapping_table))
            if j:
                # pylint: disable=E1103

src/t/u/turbulenz_local-1.1.4/turbulenz_local/controllers/localv1/metrics.py   turbulenz_local(Download)
from turbulenz_local.models.metrics import MetricsSession
from turbulenz_local.models.gamelist import get_game_by_slug
from turbulenz_local.tools import humanize_filesize as hf, load_json_asset
 
LOG = logging.getLogger(__name__)
 
    # Load mapping table
    j = load_json_asset(os.path.join(game.path, game.mapping_table))
    if j:
        # pylint: disable=E1103

src/t/u/turbulenz_local-HEAD/turbulenz_local/controllers/localv1/metrics.py   turbulenz_local(Download)
from turbulenz_local.models.metrics import MetricsSession
from turbulenz_local.models.gamelist import get_game_by_slug
from turbulenz_local.tools import humanize_filesize as hf, load_json_asset
 
LOG = logging.getLogger(__name__)
 
    # Load mapping table
    j = load_json_asset(os.path.join(game.path, game.mapping_table))
    if j:
        # pylint: disable=E1103