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

Allow to run as a single file script #81

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

Conversation

dex4er
Copy link

@dex4er dex4er commented Aug 26, 2019

Hi.

I love your tool because I can use it as a single file script in an environment without pip and the Internet access and I'm not forced to package it into binary archive. Dead simple deployment so it is very devops friendly.

I use only this small improvement that cli.py works even if there is no other file in the system (__init__.py in this case). Ok, a hashbang at top is quite useful too.

Then you can decide if you want to install the project standard way (pip install ...) or just upload this one file to the target host (scp cli.py host:/usr/local/bin/jinja2-cli).

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

Successfully merging this pull request may close these issues.

1 participant