os.getcwd sys.argv[0] os.path.abspath(__file__) inspect.getfile(inspect.currentframe())
import sys cur = filter(None, sys.path)[0]
file_path = os.path.dirname(os.path.abspath(__file__))
file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), NameOfOtherDataRelativeToYourScript)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.