Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: builtin modpath() returns a wrong path #1799

Closed
zong-zhe opened this issue Dec 25, 2024 · 0 comments · Fixed by #1824
Closed

bug: builtin modpath() returns a wrong path #1799

zong-zhe opened this issue Dec 25, 2024 · 0 comments · Fixed by #1824
Assignees
Labels
bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions
Milestone

Comments

@zong-zhe
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. create a init kcl module
kcl mod init demo
  1. change the main.k in demo

The main.k

import file

a = file.modpath()
  1. run the demo
kcl run demo

2. What did you expect to see? (Required)

a: '<the path of the demo>'

3. What did you see instead (Required)

The result is empty

a: ''

4. What is your KCL components version? (Required)

The main branch

@zong-zhe zong-zhe added the bug Something isn't working label Dec 25, 2024
@zong-zhe zong-zhe added this to the v1.0 Release milestone Dec 25, 2024
@zong-zhe zong-zhe self-assigned this Dec 25, 2024
@Peefy Peefy added the runtime Issues or PRs related to kcl runtime including value and value opertions label Jan 9, 2025
@github-project-automation github-project-automation bot moved this to Done in KCL 2024 Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants