summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-14 15:33:40 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-14 15:44:14 +0300
commit7b4d7177ed131d486297f21ec976d7fefa41b6ac (patch)
tree737c2c316ffcd41e87b065741da2689b4db3195f
parente6746593fddd0f74966ddca0ba311805f31977f1 (diff)
downloadvmdb2-7b4d7177ed131d486297f21ec976d7fefa41b6ac.tar.gz
Add srcdir, datadir variables globally
-rw-r--r--yarns/900-implements.yarn1
-rw-r--r--yarns/lib.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 6c10a14..92d027e 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -10,7 +10,6 @@ This chapter contains the implementations for all scenario steps.
IMPLEMENTS WHEN user runs vmdb2 (.*)
args = get_next_match()
- srcdir = os.environ['SRCDIR']
vmdb2 = os.path.join(srcdir, 'vmdb2')
exit, out, err = cliapp.runcmd_unchecked([vmdb2] + args.split())
helper.set_variable('exit', exit)
diff --git a/yarns/lib.py b/yarns/lib.py
index d89dec0..2ea6eed 100644
--- a/yarns/lib.py
+++ b/yarns/lib.py
@@ -6,4 +6,7 @@ from yarnutils import *
import yarnhelper
+srcdir = os.environ['SRCDIR']
+datadir = os.environ['DATADIR']
+
helper = yarnhelper.YarnHelper()