Sorry to hear that. I did the same in 2011 (have a post-op pic in my Profile). Slipped on wet grass and fell into an extreme 'hurdler stretch' with my left leg under me.
Main advice pre gym return is to avoid overeating during your convalescence, which will lead to fat gain. (Easy to say, hard to do, unfortunately.)