From 6ee8f9a2a263716776c31677ce7b31e30182e5bd Mon Sep 17 00:00:00 2001 From: Burt Holzman Date: Wed, 1 Aug 2012 13:26:18 -0500 Subject: [PATCH 1/2] Fix Issue #4 - Circular Avatar not working with LocalAvatar --- src/code_swarm.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/code_swarm.java b/src/code_swarm.java index c7c156c..950aca4 100644 --- a/src/code_swarm.java +++ b/src/code_swarm.java @@ -1499,6 +1499,7 @@ class PersonNode extends Node { String iconFile = avatarFetcher.fetchUserImage(name); if (iconFile != null) { icon = loadImage(iconFile, "unknown"); + icon.resize(cfg.getPositiveIntProperty("AvatarSize"), cfg.getPositiveIntProperty("AvatarSize")); if (circularAvatars) icon.mask(avatarMask); } From 386f1060cc4d9b387b3739648734387b50d90a44 Mon Sep 17 00:00:00 2001 From: Burt Holzman Date: Fri, 31 May 2013 11:14:18 -0500 Subject: [PATCH 2/2] Fix case when code_swarm is not a symlink --- bin/code_swarm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/code_swarm b/bin/code_swarm index 68f61e4..0b45f07 100755 --- a/bin/code_swarm +++ b/bin/code_swarm @@ -96,7 +96,11 @@ def main(): def root_path(): "Returns the path of the code_swarm source directory" - real_path = os.path.join(os.path.dirname(__file__), os.readlink(__file__)) + real_file = __file__ + if os.path.islink(): + real_file = os.readlink(__file__) + + real_path = os.path.join(os.path.dirname(real_file)) return os.path.dirname(real_path)