Skip to content

Commit

Permalink
Fix setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivy Bowman committed Nov 22, 2022
1 parent c05c699 commit 6af0775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autobooks/AutoBooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
query_login_form

# Set Vars
version = "1.0" # Version number of script
version = "1.2" # Version number of script
error_count = 0
script_dir = os.path.join(Path.home(), "AutoBooks")
csv_path = os.path.join(script_dir, 'web_known_files.csv')
Expand All @@ -34,10 +34,10 @@
folders = ['log', 'downloads', 'source_backup']
for folder in folders:
os.mkdir(os.path.join(script_dir, folder))
with open(os.path.join(script_dir, "autobooks.conf"), mode='wb') as local_file:
with open(os.path.join(script_dir, "autobooks.ini"), mode='wb') as local_file:
local_file.write(main_conf.content)
print("Finished setup please configure settings in file: ",
os.path.join(script_dir, "autobooks.conf"))
os.path.join(script_dir, "autobooks.ini"))
sys.exit(1)

# Logging Config
Expand Down

0 comments on commit 6af0775

Please sign in to comment.