[Globals] Make exe directory a global value

This commit is contained in:
Matt Nadareski
2017-03-29 12:49:34 -07:00
parent c53635b623
commit 997772de2e
3 changed files with 18 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
using System.Xml;
using SabreTools.Helper.Data;
@@ -31,7 +30,7 @@ namespace SabreTools.Helper.Skippers
public string SourceFile;
// Local paths
public static string LocalPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase), "Skippers") + Path.DirectorySeparatorChar;
public static string LocalPath = Path.Combine(Globals.ExeDir, "Skippers") + Path.DirectorySeparatorChar;
// Header skippers represented by a list of skipper objects
private static List<Skipper> _list;