caches: Move cache cleaning helper tools under scripts/lib.

This helps keep the root of scripts/ uncluttered.
This commit is contained in:
Tim Abbott 2017-08-27 17:59:49 -07:00
parent f90f9c7404
commit e38ac00f3c
4 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -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, \

View File

@ -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, \

View File

@ -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, \