Archived

This forum has been archived. Please start a new discussion on GitHub.

slice2py and ice file with dot

I am trying to generate the py files from the ice files however I am experiencing the following issue.

Filename: com.myorg.report.ice

Generation of the python file from Ice File:
c:>slice2py.exe com.myorg.report.ice will generate com.myorg.report_ice.py

However python does not allow to import the file that has been generated:
i.e. import com.myorg.report.ice will not work as dot can not be present in the name of a file as it is used for modules (python requirement).

I am using Ice 3.2.1.

Is there a flag I can use that will allow me to tell slice2py to replace "." with something else i.e "_"?

Many thanks for your assistance