Related to #95, when one specifies the remote_workdir with a path like ~/my/dir, it raises an error upon trying to parse the pkl file. The UI shows [Errno 1] : PosixPath('~/test/ef5861af-7b92-4dbc-a52c-eb83bb137496/node_0/result-ef5861af-7b92-4dbc-a52c-eb83bb137496-0.pkl').
Wrap the file path in Path().expanduser().resolve() client-side before the electron is launched. As a stretch goal, I would even suggest trying to support something like $SCRATCH/my/dir by wrapping the path call with os.path.expandvars() on the client side too.
You can basically copy what I have done in the covalent-hpc-plugin in terms of file path handling, such as here.
Environment
What is happening?
Related to #95, when one specifies the
remote_workdir
with a path like~/my/dir
, it raises an error upon trying to parse the pkl file. The UI shows [Errno 1] : PosixPath('~/test/ef5861af-7b92-4dbc-a52c-eb83bb137496/node_0/result-ef5861af-7b92-4dbc-a52c-eb83bb137496-0.pkl').How can we reproduce the issue?
What should happen?
Filepaths like
~/my/dir
should workAny suggestions?
Wrap the file path in
Path().expanduser().resolve()
client-side before the electron is launched. As a stretch goal, I would even suggest trying to support something like$SCRATCH/my/dir
by wrapping the path call withos.path.expandvars()
on the client side too.You can basically copy what I have done in the
covalent-hpc-plugin
in terms of file path handling, such as here.