blob: 6f15af70ace9d3c595afb90fa33ae8f01add7c9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env python3
""" The main file for the Silicium Bot.
Refer to `README.md` if you have any questions on the project.
"""
import os, argparse
import SiliciumCache
if __name__ == "__main__":
cache_path = os.path.normpath(os.path.join(os.path.dirname(__file__),
'cache.p'))
# Parse the arguments.
argparser = argparse.ArgumentParser()
argparser.add_argument('--cache', dest='cache',
help='Cache path.', default=cache_path)
args = argparser.parse_args()
# Make the cache manager, refresh.
cache = SiliciumCache.CacheManager(args.cache)
print(cache.refresh())
# End of file.
|