Support setting custom path to config file in helper scripts

Change-Id: I43b160cfc3d087a0e8b70c9fb4cafa3626f84db8
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: INT-1399
diff --git a/test/vcpe/loop.py b/test/vcpe/loop.py
index 3dc1948..43255c9 100755
--- a/test/vcpe/loop.py
+++ b/test/vcpe/loop.py
@@ -12,11 +12,18 @@
 import preload
 import commands
 import vcpe_custom_service
+import argparse
 
+# Run the script with [-h|--help] to get usage info
 
 logging.basicConfig(level=logging.INFO, format='%(message)s')
 
-cpecommon = VcpeCommon()
+parser = argparse.ArgumentParser(formatter_class=
+                                 argparse.ArgumentDefaultsHelpFormatter)
+parser.add_argument('--config',help='Configuration file path',default=None)
+args = parser.parse_args()
+
+cpecommon = VcpeCommon(cfg_file=args.config)
 custom = vcpe_custom_service.CustomService(cpecommon)
 
 nodes=['mux']