An electromechanical lock includes a main housing and a lock housing. The lock housing includes a locking element such as a bolt or a latch that can be translated between a locked position and an unlocked position by an actuator. The lock housing can be mounted to the main housing in more than one orientation.