sys.modules strangeness

A. Lloyd Flanagan alloydflanagan at comcast.net
Thu Apr 29 10:22:15 EDT 2004


Robin Becker <robin at reportlab.com> wrote in message news:<408FF0B1.5090505 at chamonix.reportlab.co.uk>...
> We had some legacy applications that used import to get parts of documents in.
> When run separately these worked fine, but failed when run as a single process
> because they both imported ch1 (after jumping to their home dirs and placing
> these on the path). Clearly the first to run used up ch1.

Have you tried reload(ch1)?  (see section 2.1, "Built-in Functions",
in the Python Library Reference.



More information about the Python-list mailing list