Mark et al
I cleaned up my example so you do not need to explicity define the
directory that the .py script is in, provided it is in the same
directory as the asp script. Is there any way to avoid the 2 import
statements, "import somefunctions" in order to be able to use reload and
"from somef
Mark et al
I cleaned up my example so you do not need to explicity define the
directory that the .py script is in, provided it is in the same
directory as the asp script. Is there any way to avoid the 2 import
statements, "import somefunctions" in order to be able to use reload and
"from somef
On Mon, 06 Jun 2005 17:16:25 -0700, Simon Hook
<[EMAIL PROTECTED]> wrote:
>I am trying to use import in an asp python page. If I have:
>...
>How can I get asp to pull python code from another directory and how can
>I make a change and not have to reboot for the change to be invoked? Can
>I use
[Steve]
> IIRC I did some experiments that showed me that under suitable
> circumstances the Python interpreter will see an updated
> module after an
> ASP page performs a reload() of the required module.
Yes, that is my experience too. Python's reload sementics WRT existing
class instances from
Bob,
Looks like our messages crossed in the ether. Thanks for the
clarification. I was using
iis->click on default web site and start/stop, rather than restart iis.
Also thanks for info on python versus asp. In my previous message using
reload in a python file does work so you do not need to r
Simon Hook wrote:
> I am trying to use import in an asp python page. If I have:
>
> <%@ LANGUAGE = Python%>
> <%
> import myfile
> %>
>
> Then myfile can only be found if its in the root of the
> python install directory, e.g. c:\python23
> and only if the file is called myfile.py and it contain
Steve,
Thanks for the quick response, everything you said works, I have a
couple more questions. Here are a couple of scripts that illustrate how
I implemented your suggestions.
---file1 listing ---gofetch.asp
<%@ LANGUAGE = Python%>
<%
import sys
path = "d:/inetpub/wwwroot"
Simon Hook wrote:
> Hi,
>
> I am trying to use import in an asp python page. If I have:
>
> <%@ LANGUAGE = Python%>
> <%
> import myfile
> %>
>
> Then myfile can only be found if its in the root of the python install
> directory, e.g.
>
> c:\python23
>
> and only if the file is called myfile.
Hi,
I am trying to use import in an asp python page. If I have:
<%@ LANGUAGE = Python%>
<%
import myfile
%>
Then myfile can only be found if its in the root of the python install
directory, e.g.
c:\python23
and only if the file is called myfile.py and it contains python NOT asp
code. If I ha