Skip to content

Commit

Permalink
add sys.path.insert(0,'.')
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Jul 29, 2021
1 parent 1a7139b commit b31c48f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 0.1

### 0.1.1

- Add `sys.path.insert(0,'.')`.

### 0.1.0

- First release.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tortoise-cli"
version = "0.1.0"
version = "0.1.1"
description = "A cli tool for tortoise-orm, build on top of click and ptpython."
authors = ["long2ice <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion tortoise_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
2 changes: 2 additions & 0 deletions tortoise_cli/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import os
import sys
from functools import wraps
from typing import Optional

Expand Down Expand Up @@ -59,6 +60,7 @@ async def shell(ctx: click.Context):


def main():
sys.path.insert(0, ".")
cli()


Expand Down

0 comments on commit b31c48f

Please sign in to comment.