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

add some convenience for shell-users #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ccwienk
Copy link

@ccwienk ccwienk commented Jan 6, 2022

  • set executable bit (so shebang is actually honoured on UNIX-style OSs
  • calculate paths relative to main.py (do not depend on PWD)

main.py Outdated Show resolved Hide resolved
@NetroScript
Copy link
Owner

Didn't think anyone would be using it outside as a tool from the current folder.

Changes perfectly fine with me, besides the one thing I commented on.

So I am just waiting for your response before merging.

@NetroScript NetroScript added the question Further information is requested label Jan 15, 2022
Avoid requiring that PWD be set to repository root. Instead, determine
own directory, and calculate resource file paths relative to it.
@ccwienk
Copy link
Author

ccwienk commented Mar 30, 2022

@NetroScript : I removed the left-over. Note however, that this change is unfortunately not complete; the http-server would also need to be adjusted to not server from PWD

Didn't think anyone would be using it outside as a tool from the current folder.

yeah, it is a habbit of mine to both run basically everything from terminal, and also use different PWDs to find scripts that do not properly handle this case :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants