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
|
2018-06-18 16:28:34 +02:00
|
|
|
from scripts.lib import clean_venv_cache, clean_node_cache, clean_emoji_cache
|
2017-08-22 00:18:59 +02:00
|
|
|
|
|
|
|
def main():
|
|
|
|
# type: () -> None
|
2018-06-18 16:28:34 +02:00
|
|
|
args = parse_cache_script_args("This script cleans unused zulip caches.")
|
2017-08-22 00:18:59 +02:00
|
|
|
os.chdir(ZULIP_PATH)
|
2018-06-18 16:28:34 +02:00
|
|
|
clean_venv_cache.main(args)
|
|
|
|
clean_node_cache.main(args)
|
|
|
|
clean_emoji_cache.main(args)
|
2017-08-22 00:18:59 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|