Suggestions for handling directories
@berruyer Some suggestions
If you need to create a directory under the proposal folder I would advice to let the NeXus writer do it (so everything is owned by the same user that also writes the data, could be different in the future)
from bliss.common import os_utils
os_utils.makedirs("...", exist_ok=True) # like os.makedirs but lets the writer do it
Maybe make custom directory names like this?
from bliss import current_session
macros_dir = os.path.join(current_session.scan_saving.proposal.path, "SCRIPTS", "macros")
motpos_dir = os.path.join(current_session.scan_saving.proposal.path, "SCRIPTS", "motpos")