__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
from __future__ import annotations
import importlib.resources
from pathlib import PurePosixPath, Path
import typing as T
if T.TYPE_CHECKING:
from .environment import Environment
class DataFile:
def __init__(self, path: str) -> None:
self.path = PurePosixPath(path)
def write_once(self, path: Path) -> None:
if not path.exists():
data = importlib.resources.read_text( # [ignore encoding] it's on the next lines, Mr. Lint
('mesonbuild' / self.path.parent).as_posix().replace('/', '.'),
self.path.name,
encoding='utf-8')
path.write_text(data, encoding='utf-8')
def write_to_private(self, env: 'Environment') -> Path:
try:
resource = importlib.resources.files('mesonbuild') / self.path
if isinstance(resource, Path):
return resource
except AttributeError:
# fall through to python 3.7 compatible code
pass
out_file = Path(env.scratch_dir) / 'data' / self.path.name
out_file.parent.mkdir(exist_ok=True)
self.write_once(out_file)
return out_file
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| ast | Folder | 0755 |
|
|
| backend | Folder | 0755 |
|
|
| cargo | Folder | 0755 |
|
|
| cmake | Folder | 0755 |
|
|
| compilers | Folder | 0755 |
|
|
| dependencies | Folder | 0755 |
|
|
| interpreter | Folder | 0755 |
|
|
| interpreterbase | Folder | 0755 |
|
|
| linkers | Folder | 0755 |
|
|
| modules | Folder | 0755 |
|
|
| scripts | Folder | 0755 |
|
|
| templates | Folder | 0755 |
|
|
| utils | Folder | 0755 |
|
|
| wrap | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| _pathlib.py | File | 1.87 KB | 0644 |
|
| _typing.py | File | 1.82 KB | 0644 |
|
| arglist.py | File | 12.39 KB | 0644 |
|
| build.py | File | 131.19 KB | 0644 |
|
| coredata.py | File | 39.85 KB | 0644 |
|
| depfile.py | File | 2.33 KB | 0644 |
|
| envconfig.py | File | 14.78 KB | 0644 |
|
| environment.py | File | 40.96 KB | 0644 |
|
| machinefile.py | File | 5.05 KB | 0644 |
|
| mcompile.py | File | 13.83 KB | 0644 |
|
| mconf.py | File | 16.87 KB | 0644 |
|
| mdevenv.py | File | 10.15 KB | 0644 |
|
| mdist.py | File | 15.86 KB | 0644 |
|
| mesondata.py | File | 1.23 KB | 0644 |
|
| mesonlib.py | File | 549 B | 0644 |
|
| mesonmain.py | File | 13.2 KB | 0644 |
|
| mformat.py | File | 36.15 KB | 0644 |
|
| minit.py | File | 8.07 KB | 0644 |
|
| minstall.py | File | 38.31 KB | 0644 |
|
| mintro.py | File | 29.83 KB | 0644 |
|
| mlog.py | File | 19.25 KB | 0644 |
|
| mparser.py | File | 39.99 KB | 0644 |
|
| msetup.py | File | 19 KB | 0644 |
|
| msubprojects.py | File | 32.47 KB | 0644 |
|
| mtest.py | File | 87.91 KB | 0644 |
|
| munstable_coredata.py | File | 4.14 KB | 0644 |
|
| optinterpreter.py | File | 11.43 KB | 0644 |
|
| options.py | File | 24.85 KB | 0644 |
|
| programs.py | File | 16.21 KB | 0644 |
|
| rewriter.py | File | 42.49 KB | 0644 |
|