So we went to implement something today, and discovered that there already is several applications relying on the old implementation of our inhouse python library. Called cis_py
. Now all applications for our implementation currently sit in a folder called, bin. This is where cis_py
currently resides.
Now we went to deploy one of our big python applications, which uses the new version of our inhouse library. We cannot simply overwrite the existing versions of it. Since this will cause all of the existing applications to break.
Basically i cannot update the existing applications, nor can i rewrite the new application. Now i was thinking of trying the following:
ciscis_py<python library files>
Then do a search and replace on the existing application and change the following:
cis_py.<some python file>
To
cis.cis_py.<some python file>
Unfortunately this results in several of the __init__.py
files in the library breaking, due to the use of this:
from cis_py import rga
from cis_py import util
Today is implementation day, and it must go live today, since in a few hours we start receiving data automatically.
How and what can i possibly do? Everything must reside in a single folder called bin. Due to the automatic processing system. Is there some way i can possibly trick python?