[asterisk-scf-commits] asterisk-scf/release/configurator.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jan 13 13:48:12 CST 2012


branch "master" has been updated
       via  ca857b6d911fe4defcfe25cbaec1957c14dcf17d (commit)
      from  9c000ddde667e634c4bb393b190af2d20fd438d0 (commit)

Summary of changes:
 Configurator.py |   11 ++++++++---
 README.txt      |    1 +
 2 files changed, 9 insertions(+), 3 deletions(-)
 create mode 100644 README.txt


- Log -----------------------------------------------------------------
commit ca857b6d911fe4defcfe25cbaec1957c14dcf17d
Author: Darren Sessions <dsessions at digium.com>
Date:   Fri Jan 13 13:47:06 2012 -0600

    Updated the Configurator python script to reflect new file paths and naming conventions. Added a quick system path append command for /opt/Ice-3.4/python to make the script work straight from the gitall/configurator directory. Added a README.txt file with a quick note about needing to set the ASTSCF_HOME env variable which is required within the script to find slice dependancies.

diff --git a/Configurator.py b/Configurator.py
index cf7c449..a11a076 100755
--- a/Configurator.py
+++ b/Configurator.py
@@ -18,11 +18,16 @@
 
 # Asterisk SCF Configurator Module
 
-import ConfigParser, traceback, os, Ice, getopt, sys
+import sys
+
+sys.path.append('/opt/Ice-3.4/python')
+
+import ConfigParser, traceback, os, Ice, getopt
 
 # Load and make the configuration interface available, we require it
-Ice.loadSlice("-I\"" + os.environ["ASTSCF_HOME"] + "\" -I\"" + Ice.getSliceDir() + "\" --all \"" + os.environ["ASTSCF_HOME"] + "/AsteriskSCF/System/Component/ConfigurationIf.ice\"")
-Ice.loadSlice("-I\"" + os.environ["ASTSCF_HOME"] + "\" -I\"" + Ice.getSliceDir() + "\" --all \"" + os.environ["ASTSCF_HOME"] + "/AsteriskSCF/Core/Discovery/ServiceLocatorIf.ice\"")
+Ice.loadSlice("-I\"" + os.environ["ASTSCF_HOME"] + "\" -I\"" + Ice.getSliceDir() + "\" --all \"" + os.environ["ASTSCF_HOME"] + "/slice/slice/AsteriskSCF/System/Component/ConfigurationIf.ice\"")
+Ice.loadSlice("-I\"" + os.environ["ASTSCF_HOME"] + "\" -I\"" + Ice.getSliceDir() + "\" --all \"" + os.environ["ASTSCF_HOME"] + "/slice/slice/AsteriskSCF/Core/Discovery/ServiceLocatorIf.ice\"")
+
 import AsteriskSCF.System.Configuration.V1
 import AsteriskSCF.Core.Discovery.V1
 
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..2f7d4ac
--- /dev/null
+++ b/README.txt
@@ -0,0 +1 @@
+Please set the 'ASTSCF_HOME' environment variable to the Asterisk SCF 'gitall' directory path.

-----------------------------------------------------------------------


-- 
asterisk-scf/release/configurator.git



More information about the asterisk-scf-commits mailing list