Get path to current script in Python

import os 
os.path.dirname(os.path.realpath(__file__))
 
Source 

Comments

Popular posts from this blog

Database, schema, and table sizes in Greenplum

Greenplum update with multiple tables

Show running queries on Postgresql/Greenplum