cyclonedds-python icon indicating copy to clipboard operation
cyclonedds-python copied to clipboard

[Question] Several questions about idlc py files generation

Open morkovka1337 opened this issue 2 years ago • 1 comments

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!

morkovka1337 avatar Jul 11 '23 09:07 morkovka1337

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.

Splinter1984 avatar Nov 09 '23 12:11 Splinter1984