Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
MNT #127 create directory as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
S8 I Group Acct committed Jan 30, 2020
1 parent e0d4731 commit e6a18a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions profile_bluesky/startup/50-controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,9 @@ def full_acquire_procedure():
hdf_with_fullpath = make_hdf5_workflow_filename()
print(f"HDF5 workflow file name: {hdf_with_fullpath}")

if not os.path.exists(os.path.dirname(hdf_with_fullpath)):
os.makedirs(os.path.dirname(hdf_with_fullpath))

dm_workflow.create_hdf5_file(hdf_with_fullpath)

# update these str values from the string registers
Expand Down

0 comments on commit e6a18a4

Please sign in to comment.