diff --git a/V4.py b/V4.py index 9dda6f7..fcbc52f 100755 --- a/V4.py +++ b/V4.py @@ -47,6 +47,10 @@ parser.add_argument( "-r", "--risky", help="make the program faster, probably better risk of ban", dest="fast", action="store_true" ) +parser.add_argument( + "-c", "--config", help="Choose a specific config file", dest="fast", action="store_true" +) + args = parser.parse_args() CUSTOM_START = args.override LOG = args.log @@ -75,7 +79,7 @@ else: system("") # enable colors in windows cmd #reading configuration -config_path = f"{path.abspath( path.dirname( __file__ ) )}/config.cfg" +config_path = f"{path.abspath( path.dirname( __file__ ) )}/user_data/config.cfg" config = configparser.ConfigParser() config.read(config_path) diff --git a/liste.txt b/liste.txt deleted file mode 100644 index 9ed9cfd..0000000 --- a/liste.txt +++ /dev/null @@ -1 +0,0 @@ -you,have,to,add,a,lots,of,words,like,this,separated,with,a,coma diff --git a/main.py b/main.py index ef185c1..76378bd 100644 --- a/main.py +++ b/main.py @@ -3,7 +3,7 @@ import configparser import os print -config_path = f"{os.path.abspath( os.path.dirname( __file__ ) )}/config.cfg" +config_path = f"{os.path.abspath( os.path.dirname( __file__ ) )}/user_data/config.cfg" config = configparser.ConfigParser() config.read(config_path) @@ -66,14 +66,14 @@ def setup_comptes(): else: print(t["finc"]) break - f = open('./login.csv', "w") + f = open('./user_data/login.csv', "w") for i in lc : f.write(i) f.close() print(t["ajout"]) #modifie le fichier de configuration - edit_config_txt("logpath",f'{os.getcwd()}/login.csv') + edit_config_txt("logpath",f'{os.getcwd()}/user_data/login.csv') def edit_config_txt(ligne, contenu):