From b0e82cb70a2055c133f118044cb7510c778903e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Tue, 2 Feb 2021 23:25:07 +0100 Subject: [PATCH] enable cross-compilation --- json_rpc/client.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_rpc/client.nim b/json_rpc/client.nim index 3ce3f40..11f20b0 100644 --- a/json_rpc/client.nim +++ b/json_rpc/client.nim @@ -3,7 +3,7 @@ import chronos, jsonmarshal, errors -from strutils import toLowerAscii +from strutils import toLowerAscii, replace export chronos @@ -205,4 +205,4 @@ macro createRpcSigs*(clientType: untyped, filePath: static[string]): untyped = ## calls, based on their parameters. ## Inputs are marshalled to json, and results are put into the signature's ## Nim type. - result = processRpcSigs(clientType, staticRead($filePath).parseStmt()) + result = processRpcSigs(clientType, staticRead($filePath.replace('\\', '/')).parseStmt())