Find a folder whatever it location is in Python

Viewed 34

I would like to know if it was possible to find a folder with just its name and without its location in Python.

I use the way :

'C:/Users/lucas/Desktop/Stage_S10/Partie_Code/Donnees_joueur/Donnees_prevent/Donnees_par_impact/'

I would like to change it to:

'./Donnees_Prevent/Donnees_par_impact/'

So I can change my folder location without change my Python code.

Is there a way to do it in Python?

0 Answers
Related