mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 21:15:41 +00:00
fix indentation
This commit is contained in:
@ -194,10 +194,10 @@ class PluginAppConfig(AppConfig):
|
|||||||
|
|
||||||
def _get_plugin_path(self, plugin):
|
def _get_plugin_path(self, plugin):
|
||||||
try:
|
try:
|
||||||
# for local path plugins
|
# for local path plugins
|
||||||
plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts)
|
plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# plugin is shipped as package
|
# plugin is shipped as package
|
||||||
plugin_path = plugin.PLUGIN_NAME
|
plugin_path = plugin.PLUGIN_NAME
|
||||||
return plugin_path
|
return plugin_path
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user