Python получить путь сценария
os.getcwd()
Nasty Nightingale
os.getcwd()
import os
print(os.path.abspath(''))
from pathlib import Path
current_file: Path = Path(__file__).resolve()
current_path: Path = Path(__file__).parent.resolve()
import os
file_path = os.path.realpath(__file__)