Skip to content

Fix: python code gen path to copy - #62

Open
pingelit wants to merge 1 commit into
mainfrom
fix/python-copy
Open

Fix: python code gen path to copy#62
pingelit wants to merge 1 commit into
mainfrom
fix/python-copy

Conversation

@pingelit

Copy link
Copy Markdown
Owner

As the title states.

@pingelit
pingelit requested a lite review from Copilot August 12, 2026 19:15
@pingelit pingelit self-assigned this Aug 12, 2026
@pingelit pingelit added the bug Something isn't working label Aug 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the in-source Python code generation copy step so the generated Python file is copied into the correct destination directory (rather than treating the destination as a file path).

Changes:

  • Compute the parent directory of the intended in-source Python output path.
  • Update the file(COPY ...) destination to that parent directory to avoid invalid file-path destinations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 316 to +325
if (GEN_DATA_OUTPUT_PYTHON)
if (NOT EXISTS ${GEN_DATA_IN_SOURCE_PATH}/${GEN_DATA_OUTPUT_PYTHON})
file (MAKE_DIRECTORY ${GEN_DATA_IN_SOURCE_PATH})
endif ()

# get the parent directory of the output python file
get_filename_component (GEN_DATA_OUTPUT_PYTHON_PARENT_DIR ${GEN_DATA_IN_SOURCE_PATH}/${GEN_DATA_OUTPUT_PYTHON} DIRECTORY)

file (COPY ${GEN_DATA_OUTPUT_BASE_DIR}/${GEN_DATA_OUTPUT_PYTHON}
DESTINATION ${GEN_DATA_IN_SOURCE_PATH}/${GEN_DATA_OUTPUT_PYTHON}
DESTINATION ${GEN_DATA_OUTPUT_PYTHON_PARENT_DIR}
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.33%. Comparing base (c6ca03f) to head (7887562).

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #62       +/-   ##
===========================================
+ Coverage   78.28%   99.33%   +21.04%     
===========================================
  Files          11        4        -7     
  Lines         935      150      -785     
  Branches      203        0      -203     
===========================================
- Hits          732      149      -583     
+ Misses        191        1      -190     
+ Partials       12        0       -12     
Flag Coverage Δ
3.10 ?
3.11 ?
3.12 ?
3.13 ?
3.9 ?
Windows 99.33% <ø> (+4.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants