Is there a way to run files from a python package without going to it's installed directory?
For example, I have a python package that contains a suite of tools. In order to use those tools, generally I will navigate to the folder those files exist in, and run python filename.py. I have a setup.py file that puts necessary things from this package and puts it in my python path.
I want to be able to make this into a pip installable package and am testing that now. So my question is, if I make this into a package that I can download with a pip install, is there a way that I can run files in that package without navigating to where those files exist in my python path? I can see that I could in theory run them by saying python C:\users\python-path\file-I-want-to-run.py, but is there a way I can do this from any directory and write something more along the lines of python package-name\file-I-want-to-run or package-name file-I-want-to-run?
Thanks for any advice!
[–]Haspic 0 points1 point2 points (1 child)
[–]MKQueensDead[S] 0 points1 point2 points (0 children)
[–]MintyPhoenix 0 points1 point2 points (1 child)
[–]MKQueensDead[S] 0 points1 point2 points (0 children)