Skip to content

Commit

Permalink
fix(emoji): for installable python apps in develompment
Browse files Browse the repository at this point in the history
* When it comes ro tunning such module in development, Python
can be executed with the `-m` option, because need them like
this when app is installed.
* Now run like this but you must be in the `src` folder.

```shell
python3 -m mdsanima_dev.emoji
```

So this is a simple but important to run without
`ModuleNotFoundError: No module named mdsanima_dev`.
  • Loading branch information
mdsanima committed Jun 7, 2021
1 parent 86c6037 commit 191018b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mdsanima_dev/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import requests
import pathlib
from datetime import datetime
from colors import get_complex_color
from mdsanima_dev import colors

HERE = pathlib.Path(__file__).parent

Expand Down Expand Up @@ -69,7 +69,7 @@ def emoji_clean_url_data(
emoji_clean_url_data(emoji_url=emoji_mod_url)
emoji_clean_url_data(bhead=True)
"""
mds = get_complex_color
mds = colors.get_complex_color

# Assigning function calling to a variable.
eud = emoji_get_url_data(emoji_url)
Expand Down

0 comments on commit 191018b

Please sign in to comment.