[Zope] import paths
Scheck, Garth
Garth.Scheck@intp.com
Wed, 28 Nov 2001 14:19:46 -0800
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1785A.C987BB30
Content-Type: text/plain;
charset="iso-8859-1"
I am trying to create an external method in Zope that links to a method in a
Python script called "db." The Python script "db" imports another Python
script I created called "GDAC". Both Python scripts are located in the Zope
site's Extensions directory. When I try to save the changes on the external
method I get an import error saying that it cannot find module "GDAC."
Should GDAC be located in a different directory? What is the search path
for imports within Zope? NOTE: This script works fine in PythonWin.
Thanks,
Garth
------_=_NextPart_001_01C1785A.C987BB30
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=302450922-28112001>I am trying to
create an external method in Zope that links to a method in a Python script
called "db." The Python script "db" imports another Python script I
created called "GDAC". Both Python scripts are located in the Zope site's
Extensions directory. When I try to save the changes on the external
method I get an import error saying that it cannot find module "GDAC."
Should GDAC be located in a different directory? What is the search path
for imports within Zope? NOTE: This script works fine in
PythonWin.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=302450922-28112001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=302450922-28112001>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=302450922-28112001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=302450922-28112001>Garth</SPAN></FONT></DIV></BODY></HTML>
------_=_NextPart_001_01C1785A.C987BB30--