Reading json for post code update action
Change-Id: I6636e81b44ca25c87ed92a65121cccbfebcf86a2
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/utils.py b/lib/utils.py
index 0049cca..05bae08 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -4,6 +4,7 @@
Companion file to utils.robot.
"""
+import os
import gen_print as gp
import gen_robot_keyword as grk
import bmc_ssh_utils as bsu
@@ -18,6 +19,18 @@
import collections
+# The code base directory will be one level up from the directory containing this module.
+code_base_dir_path = os.path.dirname(os.path.dirname(__file__)) + os.sep
+
+
+def get_code_base_dir_path():
+ r"""
+ Return the dir path of our code base.
+ """
+
+ return code_base_dir_path
+
+
def set_power_policy_method():
r"""
Set the global bmc_power_policy_method to either 'Old' or 'New'.