mirror of https://github.com/python/cpython.git
mac robustness: use os.path.join
This commit is contained in:
parent
f6d69289a3
commit
11bb1743b6
|
@ -7,6 +7,7 @@
|
|||
"""
|
||||
|
||||
import string
|
||||
import os
|
||||
|
||||
# These defaults don't belong here -- they should be taken from the
|
||||
# environment or from a hidden file in the current directory
|
||||
|
@ -59,7 +60,7 @@ def openrcsclient(opts = []):
|
|||
x = RCSProxyClient(address, verbose)
|
||||
if not directory:
|
||||
try:
|
||||
directory = open("CVS/Repository").readline()
|
||||
directory = open(os.path.join("CVS", "Repository")).readline()
|
||||
except IOError:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue