diff --git a/docs/source/upcoming_release_notes/400-epicsarch-qs_softlink_creation.rst b/docs/source/upcoming_release_notes/400-epicsarch-qs_softlink_creation.rst new file mode 100644 index 00000000..7f5d1cdd --- /dev/null +++ b/docs/source/upcoming_release_notes/400-epicsarch-qs_softlink_creation.rst @@ -0,0 +1,22 @@ +400 BUGFIX: epicsarch-qs softlink creation +################# + +API Changes +----------- +- N/A + +Features +-------- +- N/A + +Bugfixes +-------- +- Fixed pathcheck in hutch_python/epics_arch.py: create_softlink + +Maintenance +----------- +- N/A + +Contributors +------------ +- vespos diff --git a/hutch_python/epics_arch.py b/hutch_python/epics_arch.py index accef327..b5df38fb 100644 --- a/hutch_python/epics_arch.py +++ b/hutch_python/epics_arch.py @@ -310,7 +310,7 @@ def create_softlink(experiment, link_path): overwrites it with the new active experiment. """ # Defaults new softlink in /cds/group/pcds/dist/pds/{}/misc/ - if not os.path.exists(link_path): + if not os.path.exists(link_path.format(experiment[0:3])): raise OSError('Path does not exist path: %s' % link_path) subprocess.run(['ln', '-sf', link_path.format(experiment[0:3]) + 'epicsArch_'