Enhance a bit build_cache.py script

This commit is contained in:
Lucas Verney 2016-05-10 19:28:01 +02:00
parent 467a04c2d1
commit 9eb748fd60

View File

@ -4,7 +4,7 @@ import math
import os import os
import sqlite3 import sqlite3
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.DEBUG)
if "XDG_DATA_HOME" in os.environ: if "XDG_DATA_HOME" in os.environ:
_MPDBLISS_DATA_HOME = os.path.expandvars("$XDG_DATA_HOME/mpdbliss") _MPDBLISS_DATA_HOME = os.path.expandvars("$XDG_DATA_HOME/mpdbliss")
@ -70,4 +70,7 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
try:
main() main()
except KeyboardInterrupt:
pass