don't resolve directory when custom input is given for module root #130

Closed
codeflash-ai wants to merge 0 commits from no-absolute-init into main
Owner

PR Type

Bug fix


Description

  • Use user-provided path directly for module root

  • Remove automatic prepending of current directory

  • Exit if no custom path provided


Changes walkthrough 📝

Relevant files
Bug fix
cmd_init.py
Direct use of custom module path                                                 

codeflash/cli_cmds/cmd_init.py

  • Changed module_root assignment for custom input
  • Removed Path(curdir) concatenation
  • Directly use absolute path from user
  • +1/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • ### **PR Type** Bug fix ___ ### **Description** - Use user-provided path directly for module root - Remove automatic prepending of current directory - Exit if no custom path provided ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Bug fix</strong></td><td><table> <tr> <td> <details> <summary><strong>cmd_init.py</strong><dd><code>Direct use of custom module path</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> codeflash/cli_cmds/cmd_init.py <li>Changed <code>module_root</code> assignment for custom input<br> <li> Removed <code>Path(curdir)</code> concatenation<br> <li> Directly use absolute path from user </details> </td> <td><a href="https://github.com/codeflash-ai/codeflash/pull/248/files#diff-c15be1c100e57b623163c38b4995067f137d3ad0cf5c3e8cebeaa2f32ef86fc8">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details>
    codeflash-ai closed this pull request 2026-05-05 00:27:19 +00:00
    Some checks are pending
    CodeFlash / Optimize new Python code (pull_request) Waiting to run
    PR Labeler / label-workflow-changes (pull_request) Waiting to run
    Mypy Type Checking for CLI / type-check-cli (pull_request) Waiting to run
    / Run pr agent on every pull request, respond to user comments (pull_request) Waiting to run
    Lint / Run pre-commit hooks (pull_request) Waiting to run
    unit-tests / unit-tests (3.10) (pull_request) Waiting to run
    unit-tests / unit-tests (3.11) (pull_request) Waiting to run
    unit-tests / unit-tests (3.12) (pull_request) Waiting to run
    unit-tests / unit-tests (3.9) (pull_request) Waiting to run

    Pull request closed

    Sign in to join this conversation.
    No reviewers
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference: codeflash-ai/codeflash#130
    No description provided.