I am really new to Linux system and I am currently using Ubuntu linux operation on Oracle VM VirtualBox. I have a few enquiries about using python and its packages.
This operation is already set up with python installed as well as one python package "pytopkapi". After I have modified one sourcecode in the original package, I would like to replace the old code in the installed package with this new one.
Then I typed,
help()
help> pytopkapi
and the screen shows:
Help on package pytopkapi:
NAME
pytopkapi
FILE
/usr/local/lib/python2.7/dist-packages/pytopkapi/__init__.py
I assumed that /usr/local/lib/python2.7/dist-packages/pytopkapi/
is the install directory and I did found the sourcecode I would like to replace. Then I copied the new sourcecode in to replace the old one. The whole process went alright but from the results, it seems like the new code is not used.
Could someone tell me if this is the right way to replace a sourcecode inside an installed python package? And if it's not, how can I do it?