Is there any way to get working directory when I call global python script, created by entry_points in setuptools?
doge.py:
import sys
def da():
print("Doge greets you!\n")
print(sys.argv)
setup.py:
from setuptools import setup
setup(
name='doge-script',
version='0.1',
description='Bla',
author='Me',
author_email='',
url='',
scripts=["doge.py"],
entry_points={
'console_scripts': ['rundoge = doge:da'],
}
)
So I would like to get directory whence I call this script via "doge" command