Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- import os
-
-
- def get_base_path():
- marker_file = "run.py"
-
- current_path = os.getcwd()
-
- while current_path != 0:
- if marker_file in os.listdir(current_path):
- return current_path
-
- current_path = os.path.dirname(os.path.normpath(current_path))
|