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)
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.