python script get where that particular script is located

import os
import sys

BASE_DIR = os.path.dirname( os.path.realpath(sys.argv[0]) )