Python ouvrir le même dossier
import os
with open(os.path.join(sys.path[0], "my_file.txt"), "r") as f:
print(f.read())
Sparkling Spider
import os
with open(os.path.join(sys.path[0], "my_file.txt"), "r") as f:
print(f.read())
f = open(os.path.join(sys.path[0], "test.html"), "r")
print(f.read())
f.close()