mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-10-31 22:33:56 +01:00 
			
		
		
		
	some test as usual
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -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 | ||||
|   | ||||
							
								
								
									
										8
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.py
									
									
									
									
									
								
							| @@ -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) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user