How to deploy a custom common module?

zljubisicmob at gmail.com zljubisicmob at gmail.com
Sat May 16 00:38:10 EDT 2015


While working on one python script (test.py), I developed some functions that I will probably need in my future projects, so I decided to put such functions in another python file (cmn_funcs.py).

So in my test.py there is import cmn_funcs in order to use common functions and everything works well.

When I deploy test.py on another computer, I put (rsync) both test.py and cmn_funcs.py in the same remote directory.

If I create another python project (test2.py) in new directory, that needs common functions, what should I do with cmn_funcs.py?

Cmn_funcs.py should be in some shared directory accessible by my every current and future python project.

Furthermore, I would like to preserve simplicity of using rsync for upgrading these three python files on remote computers. 

How to deploy custom a custom common module?
Where to put it?
How to use it?
How to upgrade it?



More information about the Python-list mailing list