Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 9c51b56

Browse files
authored
Merge pull request #34 from sserrata/hotfix-1.0.5
Hotfix 1.0.5
2 parents 973d6e1 + dc7a064 commit 9c51b56

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/credentials_generate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ def main():
2121
client_id = input("CLIENT_ID: ")
2222
client_secret = getpass.getpass(prompt="CLIENT_SECRET: ")
2323
refresh_token = getpass.getpass(prompt="REFRESH_TOKEN: ")
24+
profile = input("PROFILE [default]: ") or None
2425
print("Generating credentials file...")
2526
c = Credentials(client_id=client_id,
2627
client_secret=client_secret,
27-
refresh_token=refresh_token)
28+
refresh_token=refresh_token,
29+
profile=profile)
2830
c.write_credentials()
2931
print("Done!\n")
3032
except KeyboardInterrupt:

pancloud/credentials.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,6 @@ def write_credentials(self):
357357
int: Result of operation.
358358
359359
"""
360-
if not os.path.exists(directory):
361-
os.makedirs(directory)
362360
c = self.get_credentials()
363361
credentials = {
364362
'profile': self.profile,

0 commit comments

Comments
 (0)