diff --git a/tipbot.py b/tipbot.py index fa0e157..3f7c2aa 100644 --- a/tipbot.py +++ b/tipbot.py @@ -11,6 +11,7 @@ # import sys +import os import socket import select import random @@ -68,10 +69,11 @@ if not selected_coin: log_error('Coin setup needs to be specified with -c. See --help') exit(1) +sys.path.append(os.path.join('tipbot','modules')) for modulename in modulenames: log_info('Importing %s module' % modulename) try: - __import__("tipbot.modules.%s" % modulename) + __import__(modulename) except Exception,e: log_error('Failed to load module "%s": %s' % (modulename, str(e))) exit(1) diff --git a/tipbot/modules/__init__.py b/tipbot/modules/__init__.py deleted file mode 100644 index ccedc24..0000000 --- a/tipbot/modules/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__all__ = ['tipping', 'withdraw', 'payment']