Thank you for your reply, Mark.
I did as you suggested and added [["python:package:DIS_Config"]] to my Ice files. I have another directory with other Ice files that these Ice files depend on and I added [["python:package:DataSlice"]] to those files and ran slice2py. Since we have a standard directory to put all of these python files, I also redirected the output to sub-directories in this location. So, we have
Code:
PYTHONPATH=/oudvmt/python
and now in that directory, I have my project directory called "DIS_Config" and the additional code in the directory /DataSlice, each having their own python files. So the structure looks like this:
Code:
/oudvmt/python
/DIS_Config
DISAdmin_ice.py
DISControl_ice.py
DIS_ice.py
/DIS_Config
/DataSlice
Attribute_ice.py
DataSet_ice.py
/DataSlice
In my Python script, I added
Code:
sys.path.append("/oudvmt/python/DIS_Config")
sys.path.append("/oudvmt/python/DataSlice")
and ran the function
Code:
disadmin = DIS_Config.LLE.DIS.DISAdminPrx.checkedCast(obj)
and I get the error:
Code:
Traceback (most recent call last):
File "./disconfig", line 11, in <module>
import DIS_Config
File "/oudvmt/python/DIS_Config/DIS_Config/__init__.py", line 5, in <module>
import DISAdmin_ice
File "/oudvmt/python/DIS_Config/DISAdmin_ice.py", line 16, in <module>
import DISControl_ice
File "/oudvmt/python/DIS_Config/DISControl_ice.py", line 19, in <module>
import DISAlign_ice
File "/oudvmt/python/DIS_Config/DISAlign_ice.py", line 371, in <module>
Align._op_getImage = IcePy.Operation('getImage', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, (), (), (((), _M_LLE.Data._t_DataSet),), None, (_M_DIS_Config.LLE.DIS._t_ReservedException, _M_DIS_Config.LLE.DIS._t_CommandFailedException))
AttributeError: 'module' object has no attribute '_t_DataSet'
I need to be able to break up these two directories in this fashion because other projects may use the same code and we don't want multiple copies of these files in our PYTHONPATH.
Thanks.
-Diana