Skip to content

Instantly share code, notes, and snippets.

@mbiemann
Created September 5, 2020 17:57
Show Gist options
  • Save mbiemann/bd44a4f50f50aec8e24122f772a6f38e to your computer and use it in GitHub Desktop.
Save mbiemann/bd44a4f50f50aec8e24122f772a6f38e to your computer and use it in GitHub Desktop.
Python Get Script File Base Path (Directory)
import os
print(
os.path.dirname(os.path.abspath(__file__))+os.sep
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment