aboutsummaryrefslogtreecommitdiff
blob: cd36c2c9c53fc710e808bb135f3ef4f8d03c802d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) 2017, Alice Ferrazzi <alice.ferrazzi@gmail.com>
# Distributed under the terms of the GNU General Public License v2 or later

__version__ = "0.0.1"

#===============================================================================
#
# Dependencies
#
#-------------------------------------------------------------------------------
from   elivepatch_client.client.argsparser     import ArgsParser
from   elivepatch_client.client.cli     import Main
#import pdb; pdb.set_trace()
import os

#===============================================================================
#
# MAIN
#
#-------------------------------------------------------------------------------

root = None
try:
    root = os.environ['ROOT']
except KeyError:
    pass

main = Main(ArgsParser())
try:
    main()
except KeyboardInterrupt:
    print('Interrupt received, exiting...')