Skip to content

Commit

Permalink
Change lib search path
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoe committed Sep 14, 2023
1 parent f98499a commit d2f50f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/wasp-cli/cli/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"os"
"path"
"path/filepath"
"runtime"

iotago "github.com/iotaledger/iota.go/v3"
Expand Down Expand Up @@ -62,7 +63,8 @@ func getIotaSDKLibName() string {
func getIotaSDK() *wasp_wallet_sdk.IOTASDK {
// LoadLibrary (windows) and dlLoad (linux) have different search path behaviors
// For now, use a relative path - as it will eventually be shipped with a release.
wd, err := os.Getwd()
ex, err := os.Executable()
wd := filepath.Dir(ex)
log.Check(err)

libPath := path.Join(wd, getIotaSDKLibName())
Expand Down

0 comments on commit d2f50f5

Please sign in to comment.