mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 00:23:33 +08:00
Merge pull request #20 from thiemar/bendyer-dsdlc-syspath-fix
Prepend pyuavcan in source directory to sys.path
This commit is contained in:
@@ -13,8 +13,8 @@ RUNNING_FROM_SRC_DIR = os.path.abspath(__file__).endswith(os.path.join('libuavca
|
||||
if RUNNING_FROM_SRC_DIR:
|
||||
print('Running from the source directory')
|
||||
scriptdir = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.append(os.path.join(scriptdir, '..', '..', 'pyuavcan'))
|
||||
sys.path.append(os.path.join(scriptdir))
|
||||
sys.path.insert(0, os.path.join(scriptdir, '..', '..', 'pyuavcan'))
|
||||
sys.path.insert(0, os.path.join(scriptdir))
|
||||
|
||||
def configure_logging(verbosity):
|
||||
fmt = '%(message)s'
|
||||
|
||||
Reference in New Issue
Block a user