Skip to content

Commit

Permalink
Add: start.py to make it easier to run funky locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bbugyi200 committed Nov 19, 2018
1 parent 84947fb commit a17ba38
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .funky
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"LL": "ls -a && task project:Dev.localalias -BLOCKED next \"$@\"", "t": "python -m pytest tests \"$@\"", "r": "python -m funky \"$@\"", "I": "get funky \"$@\"", "C": "echo \"Makefile setup.py setup.cfg tox.ini .travis.yml MANIFEST.in .coveragerc\" \"$@\"", "M": "find . -type f -name \"*__.py\" \"$@\"", "S": "find ./funky -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "SS": "find ./scripts -type f \\( -name \"*.py\" -not -name \"*__.py\" \\) -o -name \"*.zsh\" \"$@\"", "T": "find ./tests -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "D": "echo \"README.md CHANGELOG.md CONTRIBUTING.md\" \"$@\""}
{"LL": "ls -a && task project:Dev.localalias -BLOCKED next \"$@\"", "t": "python -m pytest tests \"$@\"", "r": "python -m funky \"$@\"", "I": "get funky \"$@\"", "C": "echo \"Makefile setup.py setup.cfg tox.ini .travis.yml MANIFEST.in .coveragerc\" \"$@\"", "M": "find . -type f -name \"*__.py\" \"$@\"", "S": "find ./funky -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "SS": "find ./scripts -type f \\( -name \"*.py\" -not -name \"*__.py\" \\) -o -name \"*.zsh\" \"$@\"", "T": "find ./tests -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "D": "echo \"README.md CHANGELOG.md CONTRIBUTING.md\" \"$@\"", "a": "source ~/projects/funky/venv/bin/activate \"$@\""}
11 changes: 11 additions & 0 deletions start.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os
import sys

this_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, this_dir)

from funky import app # noqa


if __name__ == "__main__":
sys.exit(app.main())

0 comments on commit a17ba38

Please sign in to comment.