Im trying to read an AHK ini file in python, but its unreadable in python. I know you need some type of encoding to read the ini file in python. But im pretty new to python, so no idea where to start ...
Thanks!
Ive attached the file
Code im using to create the ini file
Code: Select all
IniWrite, 0, D:\12\Temp\DetectPress.ini, SellLow1, SellLow1
Code: Select all
from pathlib import Path
data_folder = Path("D:/12/Temp/")
file_to_open2=data_folder/"DetectPress.ini"
y2 = open(file_to_open2, "r")
print(y2.read())