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
Unpackaged scripts: after TUI interaction, trogon attempts to launch the final command in working dir, not the script dir #39
Labels
bug
Something isn't working
Comments
alexhunsley
changed the title
After TUI interaction, trogon attempts to launch the final command in working dir, not the script dir
Unpackaged scripts: after TUI interaction, trogon attempts to launch the final command in working dir, not the script dir
Jun 8, 2023
I think I'm hitting the same issue with this demo script. import click
from trogon import tui
@tui()
@click.command()
@click.option("--count", default=1, help="Number of greetings.")
@click.option("--name", prompt="Your name",
help="The person to greet.")
def hello(count, name):
"""Simple program that greets NAME for a total of COUNT times."""
for x in range(count):
click.echo(f"Hello {name}!")
if __name__ == "__main__":
hello() When I run it I get this traceback after hitting ctrl + r.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Possibly a misunderstanding on my behalf, but anyway:
I tried the
nogroup_demo.py
verbatim, running it from a higher directory:So it's missing out the
test_dir/
bit before thenogroup_demo.py
.Thanks for making Trogon btw!
The text was updated successfully, but these errors were encountered: