durusmail: quixote-users: Trouble with next step after demo
Trouble with next step after demo
Trouble with next step after demo
Jason E. Sibre
2004-03-12
> Robert M. Anderson wrote:
> I think I'm going to stick to "main" for my site, but as an academic
> exercise, how would I avoid such a problem in the future?
>

There may be other solutions, but I think they'll all revolve around
sys.path.  You'll want to make sure that your package name is found before
the other package name.  But really, I think you'll find the answer will
realistically be something more along the lines of not duplicating existing
package names.  After all, what if you wanted (for instance) to name your
site package 'string', or 'time'?  Obviously, you'd give yourself all sorts
of problems if you made your package show up sooner in the search path than
the standard modules of those names.

Of course, Quixote is typically thought of as publishing a package...
Really, that's a simplification.  I think it would be more accurate to say
it publishes namespaces.  With that in mind, you can tell Quixote to
publishe an instance of an object...  Not that this matters much.  You'll
still have a name for the module or package that is used to define the
object, unless the whole thing is simple enough to put into the driver
script file.

Jason Sibre



reply