commit/galaxy-central: inithello: Another bugfix to the tool dependency cleaning script.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/cbd1387437ce/ Changeset: cbd1387437ce User: inithello Date: 2013-12-18 19:14:24 Summary: Another bugfix to the tool dependency cleaning script. Affected #: 1 file diff -r d1b1558308dc1cbb8076d20a7b7d130ca4051e1d -r cbd1387437ceba5be9b47dcbf9eb951086e410a1 lib/tool_shed/scripts/clean_up_tool_dependency_directory.py --- a/lib/tool_shed/scripts/clean_up_tool_dependency_directory.py +++ b/lib/tool_shed/scripts/clean_up_tool_dependency_directory.py @@ -11,10 +11,11 @@ else: for content in os.listdir( args.tool_dependency_dir ): print 'Deleting directory %s from %s.' % ( content, args.tool_dependency_dir ) - if os.path.isdir( content ): - shutil.rmtree( os.path.join( args.tool_dependency_dir, content ) ) + full_path = os.path.join( args.tool_dependency_dir, content ) + if os.path.isdir( full_path ): + shutil.rmtree( full_path ) else: - os.remove( content ) + os.remove( full_path ) if __name__ == '__main__': description = 'Clean out the configured tool dependency path, creating it if it does not exist.' Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org