some test as usual

This commit is contained in:
piair338 2022-10-16 12:52:55 +00:00
parent f1b6232841
commit e2a917925e
2 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,6 +1,5 @@
/old
geckodriver.log
config.cfg
.vscode/
update.sh
/Git
@ -10,4 +9,4 @@ login.csv
requirements.txt
data
**/__pycache__
config
/user_data

View File

@ -2,8 +2,12 @@
import configparser
import os
print
config_path = f"{os.path.abspath( os.path.dirname( __file__ ) )}/user_data/config.cfg"
import shutil
default_config = f"{os.path.abspath( os.path.dirname( __file__ ) )}/user_data/config.default"
new = f"{os.path.abspath( os.path.dirname( __file__ ) )}/user_data/config.cfg"
shutil.copyfile(default_config, config_path)
config = configparser.ConfigParser()
config.read(config_path)