string.join(script.PhysicalPath(), '/') will return what you want. Florent Brian Sullivan <brians@meetingbywire.com> wrote:
I have been playing around with existing Python scripts and have found > that I need to determine the URL of the script itself. Actually what I > need is the equivalent of the URLx construct for the http Request object > that works with for the URL of the script.
url= script.absolute_url() # to get the URL
Unfortunately this does not work ( at least not in the situation I am using it) - it seems to return a url that is the url of http request with the name of the script tacked on:
Like:
http://mysite/test/name_of_script
When the real location of the script is
Surely there is some reliable way of getting the second information!
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com