[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
Tue Jun 21 07:01:10 CDT 2011


branch "master" has been updated
       via  1a8be87a1573715a18281bddfbbd66148a7147e0 (commit)
      from  277654d75b173d4b7c394f43e3ba6f66be33e4dc (commit)

Summary of changes:
 Configurator.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 1a8be87a1573715a18281bddfbbd66148a7147e0
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Tue Jun 21 06:59:50 2011 -0500

    Improve loading of API Slice files.
    
    * Use Ice.getSliceDir() to find the Ice-provided Slice files.
    
    * (for now) Allow an environment variable called ASTSCF_HOME to be set to
      to tell the script where to find the Asterisk SCF Slice files.

diff --git a/Configurator.py b/Configurator.py
index f379a0b..c794980 100755
--- a/Configurator.py
+++ b/Configurator.py
@@ -21,8 +21,8 @@
 import ConfigParser, traceback, os, Ice, getopt, sys
 
 # Load and make the configuration interface available, we require it
-Ice.loadSlice('-I. --all ConfigurationIf.ice')
-Ice.loadSlice('-I. -I/opt/Ice-3.4.1/slice --all ServiceLocatorIf.ice')
+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")
 import AsteriskSCF.System.Configuration.V1
 import AsteriskSCF.Core.Discovery.V1
 

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


-- 
asterisk-scf/release/configurator.git



More information about the asterisk-scf-commits mailing list