I'm trying to create a file in a specific folder, but the file will create in the app's path no matter what.
path = os.getcwd()
while not os.path.exists(path + "\\testfolder"):
os.mkdir(path + "\\testfolder")
test_folder_path = path + "\\testfolder"
test_file = open(test_folder_path + "test.txt", "w")
test_file.write("test")
test_file.close()