only run editor if the module is executed, not imported

Signed-off-by: Mattias Andrée <maandree@operamail.com>