Commit f8eab23b authored by Chris McDonough's avatar Chris McDonough

Fix breakage on Windows due to misuse of os.path (use posixpath instead).

parent a933a60b
......@@ -14,6 +14,7 @@
""" Zope clock server. Generate a faux HTTP request on a regular basis
by coopting the asyncore API. """
import posixpath
import os
import socket
import time
......@@ -118,8 +119,8 @@ class ClockServer(asyncore.dispatcher):
# ZPublisher doesn't want the leading '?'
query = query[1:]
env['PATH_INFO']= '/' + path
env['PATH_TRANSLATED']= os.path.normpath(
os.path.join(os.getcwd(), env['PATH_INFO']))
env['PATH_TRANSLATED']= posixpath.normpath(
posixpath.join(os.getcwd(), env['PATH_INFO']))
if query:
env['QUERY_STRING'] = query
env['channel.creation_time']=time.time()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment