Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
voldemortX committed Dec 26, 2021
1 parent 5e92c21 commit cece94e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# magicimport
# importmagician

Voldemort's Python import helper

```
pip install magicimport
pip install importmagician
```

## Import from uninstalled Python directories
Expand All @@ -21,11 +21,11 @@ Say you have a directory (relative path `../../dir_a`) like this:
You want `func_a` from `utils.util_a.py`:

```
from magicimport import import_from
from importmagician import import_from
with import_from('../../'):
from utils.util_a import func_a
func_a() # use func_a
```

The advantage of **magicimport** is: outside of the `with` statement, your `sys.path` remains unchanged.
The advantage of **importmagician** is: outside of the `with` statement, your `sys.path` remains unchanged.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
long_description = fh.read()

setuptools.setup(
name="magicimport",
name="importmagician",
version="0.1.0",
author="Zhengyang Feng",
author_email="[email protected]",
description="Voldemort's Python import helper.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/voldemortX/magic-import",
url="https://github.com/voldemortX/import_magician",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit cece94e

Please sign in to comment.