Move scripts module to it's own directory

This commit is contained in:
jesopo 2019-02-05 16:56:21 +00:00
parent 8e59809db2
commit fd08e23bd4
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,8 @@ from src import IRCObject, ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
def on_load(self): def on_load(self):
self._directory = os.path.join(self.bot.directory, "modules", "scripts") our_directory = os.path.abspath(os.path.dirname(__file__))
self._directory = os.path.join(our_directory, "scripts")
self._hooks = [] self._hooks = []
self._load_scripts() self._load_scripts()