eclipse-cyclonedds / cyclonedds-python

Other
54 stars 44 forks source link

[Question] Several questions about idlc py files generation #198

Open morkovka1337 opened 1 year ago

morkovka1337 commented 1 year ago

Hello, I have a couple of questions about generation of python files from idl files:

  1. How to work with -o option? I type idlc -l py idl/file.idl -o python_files, but they are still generated in the directory I'm at the moment (not in python_files)
  2. Is there an option to somehow include automatically __init__.py file so that output directory becomes python package? Thanks!
Splinter1984 commented 8 months ago

hi @morkovka1337. i would like to try answer on your questions.

  1. you are on right way ildc ... -o python_files should create compiled files in python_files directory. there was a problem in idlpy with -o flag, that should be solved with mentioned #229 PR.
  2. i didn't find way to place __init__.py file in output directory (provided by -o flag) with idlc tool.