mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-13 16:17:11 +02:00
adds helper function to create config folder
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import inspect
|
||||
import logging
|
||||
from itertools import chain
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@ -196,3 +197,9 @@ def get_data_service_class_reference() -> Any:
|
||||
|
||||
def is_property_attribute(target_obj: Any, attr_name: str) -> bool:
|
||||
return isinstance(getattr(type(target_obj), attr_name, None), property)
|
||||
|
||||
|
||||
def create_config_folder(config_dir: Path) -> None:
|
||||
"""Create a configuration directory if it doesn't already exist."""
|
||||
|
||||
config_dir.mkdir(exist_ok=True)
|
||||
|
Reference in New Issue
Block a user