Added spine-to-snake function for new plugin routes
This commit is contained in:
parent
4eef909d13
commit
469e8218e0
2 changed files with 13 additions and 3 deletions
|
|
@ -6,7 +6,11 @@ from importlib import util
|
|||
import sys
|
||||
|
||||
from openflexure_microscope.config import USER_CONFIG_DIR
|
||||
from openflexure_microscope.utilities import camel_to_snake, camel_to_spine
|
||||
from openflexure_microscope.utilities import (
|
||||
camel_to_snake,
|
||||
camel_to_spine,
|
||||
snake_to_spine,
|
||||
)
|
||||
|
||||
|
||||
class BasePlugin:
|
||||
|
|
@ -96,7 +100,7 @@ class BasePlugin:
|
|||
|
||||
@property
|
||||
def _name_uri_safe(self):
|
||||
return camel_to_spine(self._name_python_safe)
|
||||
return snake_to_spine(self._name_python_safe)
|
||||
|
||||
|
||||
def find_plugins(plugin_path, module_name="plugins"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue