mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-29 18:00:13 +02:00
fix: .env file not being loaded before argument parser
This commit is contained in:
parent
5915b28054
commit
6f85fdaaa1
@ -978,6 +978,10 @@ def try_load_keys():
|
||||
|
||||
def UdemyDownloader():
|
||||
global udemy, course, resource
|
||||
|
||||
# loads the .env file
|
||||
load_dotenv()
|
||||
|
||||
check_dirs()
|
||||
|
||||
# Creates a new parser and sets up the arguments
|
||||
@ -1000,9 +1004,6 @@ def UdemyDownloader():
|
||||
# ensure 3rd party binaries are installed
|
||||
ensure_dependencies_installed()
|
||||
|
||||
# loads the .env file
|
||||
load_dotenv()
|
||||
|
||||
udemy = Udemy(access_token=bearer_token)
|
||||
|
||||
print("> Fetching course information, this may take a minute...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user