[Mobies-commit] [commit] r3666 - UDM/trunk/tests/test_UdmPython

ksmyth at redhat1.isis.vanderbilt.edu ksmyth at redhat1.isis.vanderbilt.edu
Tue Mar 22 15:54:26 CDT 2011


Author: ksmyth
Date: Tue Mar 22 15:54:26 2011
New Revision: 3666

Log:
Look at $UDM_PATH for udm.py

Modified:
   UDM/trunk/tests/test_UdmPython/udm_python_test.py

Modified: UDM/trunk/tests/test_UdmPython/udm_python_test.py
==============================================================================
--- UDM/trunk/tests/test_UdmPython/udm_python_test.py	Tue Mar 22 15:53:57 2011	(r3665)
+++ UDM/trunk/tests/test_UdmPython/udm_python_test.py	Tue Mar 22 15:54:26 2011	(r3666)
@@ -1,8 +1,12 @@
 import sys
+import os
 import os.path
 import unittest
 
 sys.path.append(r"C:\Program Files\ISIS\Udm\bin")
+if os.environ.has_key("UDM_PATH"):
+    sys.path.append(os.path.join(os.environ["UDM_PATH"], "bin"))
+
 sys.path.append(os.path.join(os.path.dirname(__file__), "../../bin/"))
 import udm
 # import udmd as udm


More information about the Mobies-commit mailing list