Skip to content

Instantly share code, notes, and snippets.

@peakBreaker
Last active November 26, 2018 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peakBreaker/d8e4bdb2dc39de5c319eb645289d716b to your computer and use it in GitHub Desktop.
Save peakBreaker/d8e4bdb2dc39de5c319eb645289d716b to your computer and use it in GitHub Desktop.
Gets the filename, no extention from the script running this code.
# Get filename, whcih can be used for script identification
filename_no_ext = path.splitext(path.basename(__file__))[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment