Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47787
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-06-12 04:50 -0700 |
| References | <e76ed600-524e-4e07-81c3-e6592bbd0b11@googlegroups.com> <2eed235a-5ac2-49d2-933b-1b6d324866ae@n5g2000pbg.googlegroups.com> <554bb17b-2f38-48e9-8dc7-2ec87bfa0582@googlegroups.com> |
| Message-ID | <3ba71e9e-fa2a-4ae9-ba22-9a7261b80ff9@be10g2000pbd.googlegroups.com> (permalink) |
| Subject | Re: PYTHONPATH: dev and prod |
| From | rusi <rustompmody@gmail.com> |
On Jun 12, 4:10 pm, jacopo <jacopo.pe...@gmail.com> wrote: > this idea seemed perfect but it turned out that you have to execute the module as a package > (python -m py.myscripts.any_script) otherwise I get an error on the relative import. > Unfortunately I am working in a team and I do not have control on how the module is launched. You need to give more data: 1. How you run -- 'launch' -- the code -- from py and from prod 2. What error you get 3. Did you try bundling your modules into a package? What problem happened? If PYTHONPATH does not work for you you can look at path-configuration- files (.pth) files http://docs.python.org/2/library/site.html [Ive not used them myself]
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PYTHONPATH: dev and prod jacopo <jacopo.pecci@gmail.com> - 2013-06-11 09:28 -0700
Re: PYTHONPATH: dev and prod rusi <rustompmody@gmail.com> - 2013-06-11 10:14 -0700
Re: PYTHONPATH: dev and prod jacopo <jacopo.pecci@gmail.com> - 2013-06-12 04:09 -0700
Re: PYTHONPATH: dev and prod jacopo <jacopo.pecci@gmail.com> - 2013-06-12 04:10 -0700
Re: PYTHONPATH: dev and prod rusi <rustompmody@gmail.com> - 2013-06-12 04:50 -0700
Re: PYTHONPATH: dev and prod jacopo <jacopo.pecci@gmail.com> - 2013-06-12 06:29 -0700
Re: PYTHONPATH: dev and prod rusi <rustompmody@gmail.com> - 2013-06-12 09:10 -0700
Re: PYTHONPATH: dev and prod jacopo <jacopo.pecci@gmail.com> - 2013-06-13 03:52 -0700
csiph-web