mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
mac robustness: use os.path.join
This commit is contained in:
parent
f6d69289a3
commit
11bb1743b6
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ variable to enable remote operation.)
|
|||
"""
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue