Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90722
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-05-15 21:38 -0700 |
| Message-ID | <05d4eec1-1590-41ae-9315-7bb3cd2b22ee@googlegroups.com> (permalink) |
| Subject | How to deploy a custom common module? |
| From | zljubisicmob@gmail.com |
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?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
How to deploy a custom common module? zljubisicmob@gmail.com - 2015-05-15 21:38 -0700
Re: How to deploy a custom common module? Jason Friedman <jsf80238@gmail.com> - 2015-05-16 20:06 -0600
Re: How to deploy a custom common module? Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2015-05-17 04:32 +0200
csiph-web