Skip to content

Commit b1d39ba

Browse files
committed
Convert weird MSys2 path before rsyncing the gain reference
1 parent c8f62ce commit b1d39ba

File tree

1 file changed

+2
-2
lines changed
  • src/murfey/instrument_server

1 file changed

+2
-2
lines changed

src/murfey/instrument_server/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from murfey.client.multigrid_control import MultigridController
2222
from murfey.client.rsync import RSyncer
2323
from murfey.client.watchdir_multigrid import MultigridDirWatcher
24-
from murfey.util import sanitise, sanitise_nonpath, secure_path
24+
from murfey.util import posix_path, sanitise, sanitise_nonpath, secure_path
2525
from murfey.util.instrument_models import MultigridWatcherSpec
2626
from murfey.util.models import File, Token
2727

@@ -291,7 +291,7 @@ def upload_gain_reference(
291291
).json()
292292
cmd = [
293293
"rsync",
294-
safe_gain_path,
294+
posix_path(Path(safe_gain_path)),
295295
f"{urlparse(_get_murfey_url(), allow_fragments=False).hostname}::{machine_config.get('rsync_module', 'data')}/{safe_visit_path}/{safe_destination_dir}/{secure_filename(gain_reference.gain_path.name)}",
296296
]
297297
gain_rsync = subprocess.run(cmd)

0 commit comments

Comments
 (0)