2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Docker compose relative path (#3410)

* Update development docker-compose file

- Remove external volume definition
- v2 does not allow relative path spec here
- Simplification is only required for dev version

* Remove old debug messages

* Update docker build CI step

- Check that required directories / files have been created in the correct location(s)

* Add check for pgdb directory

* Run partial docker check on pull_request

* Disable workflow running on pull requests
This commit is contained in:
Oliver
2022-07-27 07:50:54 +10:00
committed by GitHub
parent 622c0636ef
commit 7cabb78964
4 changed files with 27 additions and 46 deletions

View File

@ -245,14 +245,13 @@ class PluginsRegistry:
# Collect plugins from paths
for plugin in self.plugin_dirs():
print(f"Loading plugins from directory '{plugin}'")
logger.info(f"Loading plugins from directory '{plugin}'")
parent_path = None
parent_obj = pathlib.Path(plugin)
# If a "path" is provided, some special handling is required
if parent_obj.name is not plugin and len(parent_obj.parts) > 1:
print("loading from a qualified path:", plugin)
parent_path = parent_obj.parent
plugin = parent_obj.name