-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactored main Improved the main script. Added configurable directories that default to sane places outside of the install directory. This should resolve the write permission errors. * Modified paths to use environment variables Replaced relative paths with better and configurable ones. * Reformatted * Added default paths to init The tests do not run the main script
- Loading branch information
1 parent
d36f241
commit e0379a8
Showing
8 changed files
with
83 additions
and
49 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
7 changes: 1 addition & 6 deletions
7
amulet_map_editor/programs/edit/api/operations/manager/util.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import os | ||
import pkgutil | ||
import sys | ||
from typing import Optional | ||
from types import ModuleType | ||
import importlib.util | ||
|
||
from amulet_map_editor.programs.edit.plugins.operations import stock_plugins | ||
|
||
|
||
STOCK_PLUGINS_DIR: str = stock_plugins.__path__[0] | ||
STOCK_PLUGINS_NAME: str = stock_plugins.__name__ | ||
CUSTOM_PLUGINS_DIR = os.path.abspath("plugins") | ||
CUSTOM_PLUGINS_DIR = os.path.join(os.environ["DATA_DIR"], "plugins") |
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