switched to use python's built in os.separator vs using /
This commit is contained in:
parent
c01a18d5ca
commit
de4c7f8ba6
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ def main():
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
# Special handling for recursive copy - create intermediate dirs
|
# Special handling for recursive copy - create intermediate dirs
|
||||||
if original_basename and dest.endswith("/"):
|
if original_basename and dest.endswith(os.sep):
|
||||||
dest = os.path.join(dest, original_basename)
|
dest = os.path.join(dest, original_basename)
|
||||||
dirname = os.path.dirname(dest)
|
dirname = os.path.dirname(dest)
|
||||||
if not os.path.exists(dirname) and os.path.isabs(dirname):
|
if not os.path.exists(dirname) and os.path.isabs(dirname):
|
||||||
|
|
Loading…
Reference in a new issue