summaryrefslogtreecommitdiffstats
path: root/build/plugins/sandbox_registry.py
diff options
context:
space:
mode:
authormonster <[email protected]>2022-07-07 14:41:37 +0300
committermonster <[email protected]>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /build/plugins/sandbox_registry.py
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
fix ya.make
Diffstat (limited to 'build/plugins/sandbox_registry.py')
-rw-r--r--build/plugins/sandbox_registry.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/build/plugins/sandbox_registry.py b/build/plugins/sandbox_registry.py
deleted file mode 100644
index dc1be399b32..00000000000
--- a/build/plugins/sandbox_registry.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import os
-
-import ymake
-
-
-def onregister_sandbox_import(unit, *args):
- args = iter(args)
- for path in args:
- path = os.path.normpath(path)
- source = unit.resolve_arc_path(path)
- abs_source = unit.resolve(source)
- if not os.path.exists(abs_source):
- ymake.report_configure_error('REGISTER_SANDBOX_IMPORT: File or directory {} does not exists'.format(path))
- splited_path = path.split(os.sep)
- l, r = 0, len(splited_path)
- if splited_path[-1] == "__init__.py":
- r -= 1
- if not splited_path[0]:
- l += 1
- path = ".".join(splited_path[l:r])
- unit.onresource(["-", "{}.{}={}".format("SANDBOX_TASK_REGISTRY", path, path)])