]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
mac robustness: use os.path.join
authorGuido van Rossum <guido@python.org>
Sat, 7 Oct 1995 19:26:06 +0000 (19:26 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 7 Oct 1995 19:26:06 +0000 (19:26 +0000)
Demo/pdist/rcsclient.py

index 983aad125dce91d2b1c438e9afdce921cf61b6bf..20dffeca2300423571a2246002a35a1aeda96f25 100755 (executable)
@@ -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: