mirror of
https://gitea.com/bipinkrish/DeGourou.git
synced 2024-11-17 10:20:22 +00:00
Renaming folder for consistency
This commit is contained in:
parent
e595931a1e
commit
14a1fe0afa
4 changed files with 10 additions and 10 deletions
|
@ -20,7 +20,7 @@ def loginADE(email, password):
|
||||||
print("Email or Password cannot be empty")
|
print("Email or Password cannot be empty")
|
||||||
print()
|
print()
|
||||||
return
|
return
|
||||||
if not exists('account'): mkdir('account')
|
if not exists('degourou'): mkdir('degourou')
|
||||||
loginAndGetKey(email, password)
|
loginAndGetKey(email, password)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ def loginIA(email,password):
|
||||||
print()
|
print()
|
||||||
|
|
||||||
def start(acsmFile, outputFilename):
|
def start(acsmFile, outputFilename):
|
||||||
if not exists('account'): mkdir('account')
|
if not exists('degourou'): mkdir('degourou')
|
||||||
|
|
||||||
# setting up the account and keys
|
# setting up the account and keys
|
||||||
if not (exists(FILE_ACTIVATIONXML) and exists(FILE_DEVICEXML) and exists(FILE_DEVICEKEY) and exists(KEYPATH)):
|
if not (exists(FILE_ACTIVATIONXML) and exists(FILE_DEVICEXML) and exists(FILE_DEVICEKEY) and exists(KEYPATH)):
|
||||||
|
@ -103,8 +103,8 @@ def main():
|
||||||
# Logout
|
# Logout
|
||||||
if args.lo:
|
if args.lo:
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
rmtree("account")
|
rmtree("degourou")
|
||||||
mkdir('account')
|
mkdir('degourou')
|
||||||
print()
|
print()
|
||||||
print("Logout Sucessfull")
|
print("Logout Sucessfull")
|
||||||
print()
|
print()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
KEYPATH = "account/adobekey.der"
|
KEYPATH = "degourou/adobekey.der"
|
|
@ -7,7 +7,7 @@ import string
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
|
|
||||||
SESSION_FILE = 'account/session.pkl'
|
SESSION_FILE = 'degourou/session.pkl'
|
||||||
session = None
|
session = None
|
||||||
if path.exists(SESSION_FILE):
|
if path.exists(SESSION_FILE):
|
||||||
with open(SESSION_FILE, 'rb') as f: session = pickle.load(f)
|
with open(SESSION_FILE, 'rb') as f: session = pickle.load(f)
|
||||||
|
@ -116,7 +116,7 @@ def return_loan(book_id):
|
||||||
# manage
|
# manage
|
||||||
def manage_login(email,password):
|
def manage_login(email,password):
|
||||||
global session
|
global session
|
||||||
if not path.exists('account'): mkdir('account')
|
if not path.exists('degourou'): mkdir('degourou')
|
||||||
sess = login(email,password)
|
sess = login(email,password)
|
||||||
if sess is not None:
|
if sess is not None:
|
||||||
with open(SESSION_FILE, 'wb') as f: pickle.dump(sess, f)
|
with open(SESSION_FILE, 'wb') as f: pickle.dump(sess, f)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
FILE_DEVICEKEY = "account/devicesalt"
|
FILE_DEVICEKEY = "degourou/devicesalt"
|
||||||
FILE_DEVICEXML = "account/device.xml"
|
FILE_DEVICEXML = "degourou/device.xml"
|
||||||
FILE_ACTIVATIONXML = "account/activation.xml"
|
FILE_ACTIVATIONXML = "degourou/activation.xml"
|
Loading…
Reference in a new issue