adjust_file_path#
- cellpose_omni.io.adjust_file_path(file_path)[source]#
Adjust the file path based on the operating system. On macOS, replace '/home/user' with '/Volumes'. On Linux, replace '/Volumes' with the home directory path.
- Parameters
file_path (str) -- The original file path.
- Returns
The adjusted file path.
- Return type
str