aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sdks/agl/db-dump5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/sdks/agl/db-dump b/scripts/sdks/agl/db-dump
index 379be3e..027fdcf 100755
--- a/scripts/sdks/agl/db-dump
+++ b/scripts/sdks/agl/db-dump
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
#
#/**************************************************************************
# * Copyright 2017-2018 IoT.bzh
@@ -46,8 +46,9 @@ SCRIPT_PATH = os.path.dirname(os.path.abspath(
ENV = subprocess.check_output(
[os.path.join(SCRIPT_PATH, './_env-init.sh'), '-print']).splitlines()
+SDK_ROOT_DIR=None
for elt in ENV:
- k, v = elt.split('=', 1)
+ k, v = elt.decode().split('=', 1)
if k == 'SDK_ROOT_DIR':
SDK_ROOT_DIR = v.rstrip('/')
elif k == 'SDK_ENV_SETUP_FILENAME':