Skip to content

Make where "must have" files are more flexible #45

@viniciusalbuquerque

Description

@viniciusalbuquerque

What about we give the user the choice to where the credentials.json and the token.pickle should be.

Instead of just making users have a .gdrive in their home directory, we could have something that allowed users to change that more easily than going into the code.

Maybe read from an environment variable and if it doesn't exist, we default it to what we have today.

This line here:
GDRIVE_PATH = join(HOME, '.gdrive')

We could have something like:
GDRIVE_PATH = os.getenv('GDRIVE_PATH') if os.getenv('GDRIVE_PATH') != null else join(HOME, '.gdrive')
ps: I have no idea if this code above works, it's just an example.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions