Skip to content

Choose the rclone executable directory #59

Description

@abppbd

The rclone executable might not be installed on the system nor in the current working directory of the script execution.
I would suggest modifying the run_rclone_cmd function in utils.py (line 39) 1 to accept an executable_path input (default None), containing the path to the desired rclone.exe.

The full_command (line 48) should become:

if executable_path is None:
    executable_path = "rclone"

# Add quotation marks to the path.
executable_path = f'"{executable_path}"'

full_command = f"{executable_path} {command} {args_str}"

1: and modifying every rclone related functions dependent on it (almort all functions in rclone.py)

In the mean time I found a workaround to use a custom rclone.exe:
You need to give the subprocess.run function an executable by adding the the path to the executable's foldder to the path env var with os.environ["paht"] += f";{path/to/rclone.exe}" at the start of your script./

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions