From 14a1fe0afaa66ab0f42ba969c85d75ec287dccc5 Mon Sep 17 00:00:00 2001 From: Bipin Date: Thu, 31 Aug 2023 11:25:26 +0530 Subject: [PATCH] Renaming folder for consistency --- DeGourou/DeGourou.py | 8 ++++---- DeGourou/decrypt/params.py | 2 +- DeGourou/setup/ia.py | 4 ++-- DeGourou/setup/params.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/DeGourou/DeGourou.py b/DeGourou/DeGourou.py index 1ec57a3..62ec04e 100644 --- a/DeGourou/DeGourou.py +++ b/DeGourou/DeGourou.py @@ -20,7 +20,7 @@ def loginADE(email, password): print("Email or Password cannot be empty") print() return - if not exists('account'): mkdir('account') + if not exists('degourou'): mkdir('degourou') loginAndGetKey(email, password) print() @@ -33,7 +33,7 @@ def loginIA(email,password): print() def start(acsmFile, outputFilename): - if not exists('account'): mkdir('account') + if not exists('degourou'): mkdir('degourou') # setting up the account and keys if not (exists(FILE_ACTIVATIONXML) and exists(FILE_DEVICEXML) and exists(FILE_DEVICEKEY) and exists(KEYPATH)): @@ -103,8 +103,8 @@ def main(): # Logout if args.lo: from shutil import rmtree - rmtree("account") - mkdir('account') + rmtree("degourou") + mkdir('degourou') print() print("Logout Sucessfull") print() diff --git a/DeGourou/decrypt/params.py b/DeGourou/decrypt/params.py index 08bdfd9..53192be 100644 --- a/DeGourou/decrypt/params.py +++ b/DeGourou/decrypt/params.py @@ -1 +1 @@ -KEYPATH = "account/adobekey.der" \ No newline at end of file +KEYPATH = "degourou/adobekey.der" \ No newline at end of file diff --git a/DeGourou/setup/ia.py b/DeGourou/setup/ia.py index e3c1e4c..cc8288f 100644 --- a/DeGourou/setup/ia.py +++ b/DeGourou/setup/ia.py @@ -7,7 +7,7 @@ import string import pickle -SESSION_FILE = 'account/session.pkl' +SESSION_FILE = 'degourou/session.pkl' session = None if path.exists(SESSION_FILE): with open(SESSION_FILE, 'rb') as f: session = pickle.load(f) @@ -116,7 +116,7 @@ def return_loan(book_id): # manage def manage_login(email,password): global session - if not path.exists('account'): mkdir('account') + if not path.exists('degourou'): mkdir('degourou') sess = login(email,password) if sess is not None: with open(SESSION_FILE, 'wb') as f: pickle.dump(sess, f) diff --git a/DeGourou/setup/params.py b/DeGourou/setup/params.py index 5f03a4d..5d0ba83 100644 --- a/DeGourou/setup/params.py +++ b/DeGourou/setup/params.py @@ -1,3 +1,3 @@ -FILE_DEVICEKEY = "account/devicesalt" -FILE_DEVICEXML = "account/device.xml" -FILE_ACTIVATIONXML = "account/activation.xml" \ No newline at end of file +FILE_DEVICEKEY = "degourou/devicesalt" +FILE_DEVICEXML = "degourou/device.xml" +FILE_ACTIVATIONXML = "degourou/activation.xml" \ No newline at end of file