By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,820 Members | 1,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,820 IT Pros & Developers. It's quick & easy.

Re: Shared script

P: n/a

On Fri, 2008-08-01 at 14:41 -0700, Zach Hobesh wrote:
I wrote a script that several different people on different machines
need to run on a regular basis. When I first wrote it, it was in
crisis mode, I got something out that was quick and dirty, very bare
bones. Recently I had some more time, so I pushed most of the
functions that the script uses into a module, because I use those
functions on a pretty regular basis.

My problem is this:

The module is on MY machine in MY Python25 folder. I like it there,
because like I said, I use the functions within it on a pretty regular
basis. However, the other people who need to run the original script
don't have the module. My quick fix was to throw the module into the
shared folder, which works, but means everytime I have to update the
module I have to update 2 different files, the one in my Python25
folder and the one in the shared network folder. Is there a better
way to do this, short of asking everybody else to put the module in
thir Python 25 folder (which would mean me e-mailing them to update
the module, and then assuming that they did) ?!?

Thanks,

Zach
You could just give the script and the module to the other people who
use your script, and tell them to put the files in the same directory.
I hope this could help you.

--Ratfink

Aug 1 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.