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 @@ ...@@ -14,6 +14,7 @@
""" Zope clock server. Generate a faux HTTP request on a regular basis """ Zope clock server. Generate a faux HTTP request on a regular basis
by coopting the asyncore API. """ by coopting the asyncore API. """
import posixpath
import os import os
import socket import socket
import time import time
...@@ -118,8 +119,8 @@ class ClockServer(asyncore.dispatcher): ...@@ -118,8 +119,8 @@ class ClockServer(asyncore.dispatcher):
# ZPublisher doesn't want the leading '?' # ZPublisher doesn't want the leading '?'
query = query[1:] query = query[1:]
env['PATH_INFO']= '/' + path env['PATH_INFO']= '/' + path
env['PATH_TRANSLATED']= os.path.normpath( env['PATH_TRANSLATED']= posixpath.normpath(
os.path.join(os.getcwd(), env['PATH_INFO'])) posixpath.join(os.getcwd(), env['PATH_INFO']))
if query: if query:
env['QUERY_STRING'] = query env['QUERY_STRING'] = query
env['channel.creation_time']=time.time() 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