mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:36:31 +00:00
fix config
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
@@ -34,7 +33,9 @@ public class Config
|
||||
|
||||
public static Config Read()
|
||||
{
|
||||
if (!File.Exists(CONFIG_PATH))
|
||||
string configFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), CONFIG_PATH);
|
||||
|
||||
if (!File.Exists(configFilePath))
|
||||
{
|
||||
var exePath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)!;
|
||||
return new Config
|
||||
|
||||
Reference in New Issue
Block a user