switched to use python's built in os.separator vs using /

This commit is contained in:
Brian Coca 2015-04-03 09:06:58 -04:00
parent c01a18d5ca
commit de4c7f8ba6

View file

@ -240,7 +240,7 @@ def main():
changed = False
# 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)
dirname = os.path.dirname(dest)
if not os.path.exists(dirname) and os.path.isabs(dirname):