Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11bb174

Browse files
committed
mac robustness: use os.path.join
1 parent f6d6928 commit 11bb174

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Demo/pdist/rcsclient.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88

99
import string
10+
import os
1011

1112
# These defaults don't belong here -- they should be taken from the
1213
# environment or from a hidden file in the current directory
@@ -59,7 +60,7 @@ def openrcsclient(opts = []):
5960
x = RCSProxyClient(address, verbose)
6061
if not directory:
6162
try:
62-
directory = open("CVS/Repository").readline()
63+
directory = open(os.path.join("CVS", "Repository")).readline()
6364
except IOError:
6465
pass
6566
else:

0 commit comments

Comments
 (0)