Enable DEVMODE by default
The usage of local libraries is (for the time being) the most
used version of the suite. Indeed many features are provided by
out-of-mainline patches provided only by local libraries.
This patch switch to the usage of local libraries if not otherwise
specified. If you want to use system installed libraries just export
DEVMODE=0
in the shell where init_env is sourced and/or the ipython server
started.
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
diff --git a/README.md b/README.md
index 32df199..5549a8d 100644
--- a/README.md
+++ b/README.md
@@ -171,7 +171,7 @@
# Enter the ipynb folder
$ cd ipynb
# Start the server
- $ DEVMODE=1 ./ipyserver_start lo
+ $ ./ipyserver_start lo
This will start the server and open the index page in a new browser tab. If
the index is not automatically loaded in the browser, visit the link reported
@@ -259,7 +259,7 @@
To run this regression test, first set up the local execution environment by
sourcing the initialization script:
- $ DEVMODE=1 source init_env
+ $ source init_env
Next, check the target configuration which is defined in *target.config*. This
file has to be updated to at least define the login credentials for the target
diff --git a/init_env b/init_env
index 7099a7c..81c0a11 100644
--- a/init_env
+++ b/init_env
@@ -1,4 +1,7 @@
+# By default use internal libraries
+DEVMODE=${DEVMODE:-1}
+
export PYTHONPATH=''
export PYTHONPATH=`pwd`/libs/utils:$PYTHONPATH
export PYTHONPATH=`pwd`/libs/wlgen:$PYTHONPATH
diff --git a/ipynb/ipyserver_start b/ipynb/ipyserver_start
index 5c0199b..ffef931 100755
--- a/ipynb/ipyserver_start
+++ b/ipynb/ipyserver_start
@@ -2,6 +2,9 @@
NETIF=${1:-eth0}
+# By default use internal libraries
+DEVMODE=${DEVMODE:-1}
+
# Get the IP Address of the local Ethernet interface
IPADDR=$(ifconfig $NETIF 2>/dev/null | \
awk '/inet / {print $2}' | \