Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using without "cfg" #1

Open
gauch opened this issue Feb 4, 2019 · 2 comments
Open

Using without "cfg" #1

gauch opened this issue Feb 4, 2019 · 2 comments

Comments

@gauch
Copy link

gauch commented Feb 4, 2019

Hey,

Could you add a flag, when cfg = 'system' (or something), then flag "--config" would not be inserted into command?

I'm using rclone with its own config and rely on refresh tokens stored there.

Thanks

@ddragosd
Copy link
Owner

ddragosd commented Nov 9, 2020

@gauch I'm so sorry I missed the notification with the issue you opened.
It makes sense what you're suggesting. I'm curios if you solved your problem differently in the meanwhile ? Is this still a priority ?

@dkolb
Copy link

dkolb commented Dec 4, 2020

Working on this today and while I'd like to just let rclone find it's own configs I am working around it by manually reading in the file as follows:

import rclone
from os.path import expanduser

with open(expanduser('~/.config/rclone/rclone.conf')) as config_file:
    config = config_file.read()

rclone.with_config(config).listremotes()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants