mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix indentation
This commit is contained in:
parent
9ecf9603d6
commit
eb02a85154
@ -194,10 +194,10 @@ class PluginAppConfig(AppConfig):
|
||||
|
||||
def _get_plugin_path(self, plugin):
|
||||
try:
|
||||
# for local path plugins
|
||||
# for local path plugins
|
||||
plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts)
|
||||
except ValueError:
|
||||
# plugin is shipped as package
|
||||
# plugin is shipped as package
|
||||
plugin_path = plugin.PLUGIN_NAME
|
||||
return plugin_path
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user