Skip to content

Commit 41de596

Browse files
committed
2 parents dd686a6 + e411f5a commit 41de596

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
* **初始化**
3636
```csharp
3737
//WPF
38-
string path = System.IO.Path.Combine(Environment.CurrentDirectory, "Languages");
38+
//怀疑用Environment.CurrentDirectory开机启动时目录会出错,待验证
39+
string appDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
40+
string path = Path.Combine(appDir, "Res\\Languages");
3941
LanService.Init(new JsonDB(path), true);
4042

4143
//UWP

0 commit comments

Comments
 (0)