Source code for wesfinx
import sys
import pathlib
__version__ = "2025.12.6"
[docs]
def location():
"""
returns the path of the script running or the current working directory.
"""
if sys.argv[0] == '-c':
return pathlib.Path.cwd()
return pathlib.Path(sys.argv[0]).parent
# return pathlib.Path(sys.argv[0]).parent.resolve()