bash: path of script that is being executed



How can a script that is being executed determine its path? What if the script has been sourced?

.