import os
import sys

plugin_dir = os.path.dirname(os.path.abspath(__file__))
if plugin_dir not in sys.path:
    sys.path.insert(0, plugin_dir)

import pcbnew
from lochraster_plugin import LochrasterPlugin

plugin = LochrasterPlugin()
plugin.register()
