Move files under module dir
This commit is contained in:
parent
ecf74c50b8
commit
232258e8a0
9 changed files with 16 additions and 11 deletions
8
my_project_name/__init__.py
Normal file
8
my_project_name/__init__.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import sys
|
||||
|
||||
# Check that we're not running on an unsupported Python version.
|
||||
if sys.version_info < (3, 5):
|
||||
print("matrix_reminder_bot requires Python 3.5 or above.")
|
||||
sys.exit(1)
|
||||
|
||||
__version__ = "0.0.1"
|
|
@ -1,4 +1,4 @@
|
|||
from chat_functions import send_text_to_room
|
||||
from my_project_name.chat_functions import send_text_to_room
|
||||
|
||||
|
||||
class Command(object):
|
|
@ -1,11 +1,8 @@
|
|||
from chat_functions import (
|
||||
send_text_to_room,
|
||||
)
|
||||
from bot_commands import Command
|
||||
from my_project_name.bot_commands import Command
|
||||
from nio import (
|
||||
JoinError,
|
||||
)
|
||||
from message_responses import Message
|
||||
from my_project_name.message_responses import Message
|
||||
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
|
@ -4,7 +4,7 @@ import os
|
|||
import yaml
|
||||
import sys
|
||||
from typing import List, Any
|
||||
from errors import ConfigError
|
||||
from my_project_name.errors import ConfigError
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
|
@ -16,9 +16,9 @@ from aiohttp import (
|
|||
ServerDisconnectedError,
|
||||
ClientConnectionError
|
||||
)
|
||||
from callbacks import Callbacks
|
||||
from config import Config
|
||||
from storage import Storage
|
||||
from my_project_name.callbacks import Callbacks
|
||||
from my_project_name.config import Config
|
||||
from my_project_name.storage import Storage
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
from chat_functions import send_text_to_room
|
||||
from my_project_name.chat_functions import send_text_to_room
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
Loading…
Reference in a new issue