Import with INSTANCE_HOME?
3 Jan
2001
3 Jan
'01
6:02 p.m.
Can anyone tell me how to do a "from Products.ZPatterns import anything" when using INSTANCE_HOME? Do I have to add the INSTANCE_HOME path to sys.path? Thanks
3 Jan
3 Jan
6:54 p.m.
New subject: [Zope-dev] Import with INSTANCE_HOME?
From: BS <bentzion@bellatlantic.net>
Can anyone tell me how to do a "from Products.ZPatterns import anything" when using INSTANCE_HOME? Do I have to add the INSTANCE_HOME path to sys.path?
As long as Python has already imported Zope (i.e. you're in another Product) you don't need to do anything special. All Product directories' contents can be imported with "import Products.whatever". Cheers, Evan @ digicool & 4-am
9247
Age (days ago)
9247
Last active (days ago)
1 comments
2 participants
participants (2)
-
BS -
Evan Simpson