mirror of https://github.com/zulip/zulip.git
caches: Move cache cleaning helper tools under scripts/lib.
This helps keep the root of scripts/ uncluttered.
This commit is contained in:
parent
f90f9c7404
commit
e38ac00f3c
|
@ -21,9 +21,9 @@ def main():
|
|||
parse_args()
|
||||
os.chdir(ZULIP_PATH)
|
||||
print("Starting cache cleaning scripts...")
|
||||
subprocess.check_call(["./scripts/clean-venv-cache"] + sys.argv[1:])
|
||||
subprocess.check_call(["./scripts/clean-npm-cache"] + sys.argv[1:])
|
||||
subprocess.check_call(["./scripts/clean-emoji-cache"] + sys.argv[1:])
|
||||
subprocess.check_call(["./scripts/lib/clean-venv-cache"] + sys.argv[1:])
|
||||
subprocess.check_call(["./scripts/lib/clean-npm-cache"] + sys.argv[1:])
|
||||
subprocess.check_call(["./scripts/lib/clean-emoji-cache"] + sys.argv[1:])
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -6,7 +6,7 @@ import sys
|
|||
if False:
|
||||
from typing import Set, Text
|
||||
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ZULIP_PATH)
|
||||
from scripts.lib.zulip_tools import GENERIC_CACHE_SCRIPT_PARSER, \
|
||||
generate_sha1sum_emoji, get_caches_to_be_purged, get_environment, \
|
|
@ -7,7 +7,7 @@ import sys
|
|||
if False:
|
||||
from typing import Set, Text
|
||||
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ZULIP_PATH)
|
||||
from scripts.lib.node_cache import generate_sha1sum_node_modules
|
||||
from scripts.lib.zulip_tools import GENERIC_CACHE_SCRIPT_PARSER, \
|
|
@ -6,7 +6,7 @@ import sys
|
|||
if False:
|
||||
from typing import Set, Text
|
||||
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ZULIP_PATH)
|
||||
from scripts.lib.hash_reqs import expand_reqs, hash_deps
|
||||
from scripts.lib.zulip_tools import GENERIC_CACHE_SCRIPT_PARSER, \
|
Loading…
Reference in New Issue