oysteikt/wiki-math-bot
oysteikt
/
wiki-math-bot
Archived
1
0
Fork 0

Move data file links

This commit is contained in:
Oystein Kristoffer Tveit 2021-03-26 23:40:51 +01:00
parent 16eb399328
commit 2c2304082a
3 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@
<Compile Include="Program.fs" /> <Compile Include="Program.fs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="../../data/channels.dat" /> <Content Include="data/channels.dat" />
<Content Include="../../data/config.json"> <Content Include="data/config.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
</ItemGroup> </ItemGroup>

View File

@ -5,7 +5,7 @@ module Channels =
open FSharp.Data open FSharp.Data
open System.IO open System.IO
let private filepath = __SOURCE_DIRECTORY__ + "/../../data/channels.dat" let private filepath = __SOURCE_DIRECTORY__ + "/data/channels.dat"
let mutable channels = let mutable channels =
File.ReadLines(filepath) File.ReadLines(filepath)

View File

@ -7,7 +7,7 @@ module Config =
let private getConfig = let private getConfig =
let builder = new ConfigurationBuilder() let builder = new ConfigurationBuilder()
do builder.SetBasePath( Directory.GetCurrentDirectory() + "/../../data" ) |> ignore do builder.SetBasePath( Directory.GetCurrentDirectory() + "/data" ) |> ignore
do builder.AddJsonFile("config.json") |> ignore do builder.AddJsonFile("config.json") |> ignore
builder.Build() builder.Build()