Show More
@@ -175,6 +175,9 b' def pathto(n1, n2):' | |||||
175 |
|
175 | |||
176 | def canonpath(root, cwd, myname): |
|
176 | def canonpath(root, cwd, myname): | |
177 | """return the canonical path of myname, given cwd and root""" |
|
177 | """return the canonical path of myname, given cwd and root""" | |
|
178 | if root == os.sep: | |||
|
179 | rootsep = os.sep | |||
|
180 | else: | |||
178 | rootsep = root + os.sep |
|
181 | rootsep = root + os.sep | |
179 | name = myname |
|
182 | name = myname | |
180 | if not name.startswith(os.sep): |
|
183 | if not name.startswith(os.sep): |
General Comments 0
You need to be logged in to leave comments.
Login now