This repository was archived by the owner on Aug 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from jesseward/x84-241-child-config-directory
Implement child config directory in [system] option scriptpath
- Loading branch information
Showing
6 changed files
with
57 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e1ff384
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error when using child config directory.
Mon-04-13 05:35PM ERROR session.py:386 anonymous[telnet-98.231.143.159:55473] File "/home/x84/x84/local/lib/python2.7/site-packages/x84/bbs/session.py", line 296, in script_module
Mon-04-13 05:35PM ERROR session.py:386 anonymous[telnet-98.231.143.159:55473] lookup = imp.find_module('init', [directory])
Mon-04-13 05:35PM ERROR session.py:386 anonymous[telnet-98.231.143.159:55473]
Mon-04-13 05:35PM ERROR session.py:386 anonymous[telnet-98.231.143.159:55473] ImportError: No module named init
Mon-04-13 05:35PM ERROR session.py:339 anonymous[telnet-98.231.143.159:55473] stop after general exception in matrix
/.x84/default.ini contains:
scriptpath = /home/x84/x84/local/lib/python2.7/site-packages/x84/district,/home/x84/x84/local/lib/python2.7/site-packages/x84/default
/.../district just has top.py and main.py for now.
e1ff384
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make an empty file named
__init__.py
When a python module is declared as a folder, such file is required to recognize it as a "module". https://docs.python.org/2/tutorial/modules.html#packages