I've implemented some utility for my needs to simplify the development using Python. It requires multiple .py
files and some additional .template
files - renamed .txt
file.
I want to have an ability to use this utility from anywhere in the filesystem. For example if I am currently in some folder I want to run something like
>python util1.py
And get the required result in the current folder.
How to do it?
If it's not possible is there a way to create one module with .py
scripts and .template
files and then take it with me anywhere?
If I put it into PYTHON_HOME
aka D:\Python27
it shows error
python: can't open file 'util1.py': [Errno 2] No such file or directory
If I put it into C:\Windows
it doesn't work either.