Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gingters committed Mar 29, 2020
1 parent 41915b2 commit 21eee4a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/SharpPiLed/Bindings/RpiRgbLedMatrix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ namespace SharpPiLed.Bindings
{
using System;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;

internal static class RpiRgbLedMatrix
Expand All @@ -11,8 +10,14 @@ internal static class RpiRgbLedMatrix

static RpiRgbLedMatrix()
{
var path = typeof(RpiRgbLedMatrix).Assembly.Location;
Path.
var path = Path.GetDirectoryName(typeof(RpiRgbLedMatrix).Assembly.Location);
var libraryPath = Path.Combine(path, $"{LIBRARY_NAME}.so");

// if we have a .so.1 file, then copy that to .so
if (File.Exists(libraryPath + ".1"))
{
File.Copy(libraryPath + ".1", libraryPath, true);
}
}

#region Bindings for Canvas
Expand Down

0 comments on commit 21eee4a

Please sign in to comment.