Merge pull request #3279 from blankenberg/16.10_ts_install_broken_symlink

[16.10] Fix for ToolShed install when copied sample data target exists, but is broken symlink.
This commit is contained in:
Martin Cech
2016-12-07 14:44:14 -05:00
committed by GitHub
+1 -1
View File
@@ -57,7 +57,7 @@ def copy_sample_file( app, filename, dest_path=None ):
shutil.copy( full_source_path, full_destination_path )
# Only create the .loc file if it does not yet exist. We don't overwrite it in case it
# contains stuff proprietary to the local instance.
if not os.path.exists( os.path.join( dest_path, copied_file ) ):
if not os.path.lexists( os.path.join( dest_path, copied_file ) ):
shutil.copy( full_source_path, os.path.join( dest_path, copied_file ) )