2017-08-22 00:18:59 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import argparse
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
2017-09-26 01:10:11 +02:00
|
|
|
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
2017-08-22 00:18:59 +02:00
|
|
|
sys.path.append(ZULIP_PATH)
|
2017-09-23 20:54:19 +02:00
|
|
|
from scripts.lib.zulip_tools import get_environment, parse_cache_script_args
|
2017-08-22 00:18:59 +02:00
|
|
|
|
|
|
|
def main():
|
|
|
|
# type: () -> None
|
2017-09-23 20:54:19 +02:00
|
|
|
parse_cache_script_args("This script cleans unused zulip caches.")
|
2017-08-22 00:18:59 +02:00
|
|
|
os.chdir(ZULIP_PATH)
|
2017-08-28 02:59:49 +02:00
|
|
|
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:])
|
2017-08-22 00:18:59 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|