dsdlc: path extension feature removed

This commit is contained in:
Pavel Kirienko
2015-06-10 15:28:53 +03:00
parent 68e21a6e77
commit e612a0014b
-7
View File
@@ -9,13 +9,6 @@
from __future__ import division, absolute_import, print_function, unicode_literals
import os, sys, logging, argparse
RUNNING_FROM_SRC_DIR = os.path.abspath(__file__).endswith(os.path.join('libuavcan', 'dsdl_compiler', 'libuavcan_dsdlc'))
if RUNNING_FROM_SRC_DIR:
print('Running from the source directory')
scriptdir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(scriptdir, '..', '..', 'pyuavcan'))
sys.path.insert(0, os.path.join(scriptdir))
def configure_logging(verbosity):
fmt = '%(message)s'
level = { 0: logging.WARNING, 1: logging.INFO, 2: logging.DEBUG }.get(verbosity or 0, logging.DEBUG)