Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90722

How to deploy a custom common module?

X-Received by 10.236.104.129 with SMTP id i1mr18748935yhg.51.1431751090602; Fri, 15 May 2015 21:38:10 -0700 (PDT)
X-Received by 10.140.102.172 with SMTP id w41mr81141qge.40.1431751090583; Fri, 15 May 2015 21:38:10 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!z60no887173qgd.0!news-out.google.com!k20ni17932qgd.0!nntp.google.com!z60no887171qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Fri, 15 May 2015 21:38:10 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=141.136.211.94; posting-account=JsNZKAkAAABpnE7nnU8-nLG6sd3ySS1N
NNTP-Posting-Host 141.136.211.94
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <05d4eec1-1590-41ae-9315-7bb3cd2b22ee@googlegroups.com> (permalink)
Subject How to deploy a custom common module?
From zljubisicmob@gmail.com
Injection-Date Sat, 16 May 2015 04:38:10 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:90722

Show key headers only | View raw


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 | NextNext in thread | Find similar | Unroll thread


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