LSD - lets share data daemon

This commit is contained in:
j 2013-11-02 15:37:56 +01:00
commit 71114c8e8b
14 changed files with 1655 additions and 0 deletions

26
bin/lsd Executable file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
# GPL 2013
import os
import sys
from optparse import OptionParser
import json
root = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
if os.path.exists(os.path.join(root, 'lsd')):
sys.path.insert(0, root)
import lsd
if __name__ == '__main__':
parser = OptionParser()
parser.add_option('-c', '--config', dest='config', help='path to config.json', default=None)
(opts, args) = parser.parse_args()
if opts.config:
with open(opts.config) as fd:
config = json.load(fd)
else:
config = {}
lsd.main(config)