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

[Feature] New bru.scriptpath with path to .bru file in addition to bru.cwd #2480

Closed
1 task done
gajanak opened this issue Jun 18, 2024 · 1 comment · May be fixed by #3298
Closed
1 task done

[Feature] New bru.scriptpath with path to .bru file in addition to bru.cwd #2480

gajanak opened this issue Jun 18, 2024 · 1 comment · May be fixed by #3298
Labels
enhancement New feature or request mid-term-goal Mid Term Goal module-scripting

Comments

@gajanak
Copy link

gajanak commented Jun 18, 2024

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Hi,

I have collections with many Sub Directories for organisation.

It would be nice if there is something like bru.cwd() which returns path to Collection , like
bru.scriptPath() or something... which return path or path+filename to the .bru File.

Background: want to load assets from Directory where the bru file resist.

Perhaps anyone has better idea for a good Name.
Filename or path.

Or does there exist a workaround ? some undocumented Variables ?

Perhaps, This could help #2064 , too.

Thanky you.

Mockups or Images of the feature

// One of:
bru.cwd() // absolute collection  
bru.relativePath() // relative path of current bru to collection
bru.bruFile(), bru.currentFile()  // absolut filename to bru file ?
bru.log("Blub")  // Output send to Timeline Tab for Debugging. (bonus idea)
@gajanak gajanak added the enhancement New feature or request label Jun 18, 2024
@anusree-bruno anusree-bruno added the mid-term-goal Mid Term Goal label Nov 25, 2024
@helloanoop
Copy link
Contributor

Thank you for highlighting this, @gajanak. I've opened #3817 to facilitate a more detailed discussion about this API.

Closing this issue now—please track updates in #3817.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mid-term-goal Mid Term Goal module-scripting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants