public void Initialize() { var path = typeof(MotionController).Assembly.Location; var dir = System.IO.Path.GetDirectoryName(path); var cfg = System.IO.Path.Combine(dir, "gts.cfg"); if (System.IO.File.Exists(cfg)) { N.GT_LoadConfig(card, cfg).Verify(); } }