aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sdks/agl/db-dump
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-04-05 17:40:22 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-04-05 17:40:22 +0200
commite8a81fabbb36771125426454a6ba3b1e47e3a753 (patch)
tree4ddf87b15cb699b4bd85d2ab6b481805dac1de65 /scripts/sdks/agl/db-dump
parent655b262cf575bbf81df34f9966acc047ebbb383d (diff)
Convert db-dump to python3
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'scripts/sdks/agl/db-dump')
-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':