diff --git a/libuavcan/dsdl_compiler/libuavcan_dsdlc b/libuavcan/dsdl_compiler/libuavcan_dsdlc index 043dc387b2..38a7c3fb9c 100755 --- a/libuavcan/dsdl_compiler/libuavcan_dsdlc +++ b/libuavcan/dsdl_compiler/libuavcan_dsdlc @@ -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)