<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffcc" text="#000000">
I am using setuptools to creat a windows installer (using python
setup.py bdist --format=wininst).<br>
setuptools creates a 'entry point', so it generates a .exe in the
Scripts directory (this exe calls start.py)<br>
<br>
/base/<br>
&nbsp;&nbsp;&nbsp; start.py<br>
&nbsp;&nbsp;&nbsp; b.py<br>
&nbsp;&nbsp;&nbsp; /lib/<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; __init__.py<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; c.py<br>
<br>
start.py imports b.py (which has a global that is initialised)<br>
then start.py imports c.py<br>
c.py imports start.py (as far as I know this is not a circular import,
because I am using only 'import xx', not 'from xx import ..')<br>
<br>
when running start.py directly (as 'python start.py') everything goes
OK.<br>
<br>
My problem is when I run the .exe from the entry point in the Scripts
directory.<br>
when start.py is imported from c.py and start.py on its turn imports
b.py, b.py is completly initialised again. <br>
This behavious does not happen when start.py is called directly.<br>
<br>
what am I doing wrong?<br>
<br>
I also noticed that, when creating and installing a windwos instaler,
the easy-install.pth does not get an entry for my application. Is this
intended?<br>
<br>
<br>
best regards, Henk-Jan<br>
</body>
</html>