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?
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
.gdrivein 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?