|
@ -34,7 +34,11 @@ import Ice, IcePy, tempfile |
|
|
|
|
|
|
|
|
def loadSlice( slicefile ): |
|
|
def loadSlice( slicefile ): |
|
|
""" Load the slice file with the correct include dir set, if possible. """ |
|
|
""" Load the slice file with the correct include dir set, if possible. """ |
|
|
|
|
|
if hasattr( Ice, "getSliceDir" ): |
|
|
icepath = Ice.getSliceDir() |
|
|
icepath = Ice.getSliceDir() |
|
|
|
|
|
else: |
|
|
|
|
|
icepath = None |
|
|
|
|
|
|
|
|
if not icepath: |
|
|
if not icepath: |
|
|
# last resort, let's hope to christ this works (won't for >=1.2.3) |
|
|
# last resort, let's hope to christ this works (won't for >=1.2.3) |
|
|
Ice.loadSlice( slicefile ) |
|
|
Ice.loadSlice( slicefile ) |
|
|