I have written a command line script that requires a csv file included with my python package (layout of package below). I am using argparse on the command line script and am trying to make the default csv file the one that comes with the package. How would I assign my csv file included with the package as the default csv file in my command line command?
Command Line Argparse arguments:
parser = ArgumentParser()
parser.add_argument("-d", "--database", help="Database", **default="../data/database.csv"**) ## Help Here
args = parser.parse_args()
Package Hierarchy:
package
- bin/
- My_Commandline_Command
- data/
- database.csv
- build/ ...
- dist/ ...
- MANIFEST.in
- README.md
- setup.py
- package/
- __init__.py
The Error:
When I install my package outside my development environment, I can see the data folder, however, my command line script is throwing an error because the default database path is not found.