From 84602ec831f0ea0b34a7ec10c73f7a7e7268832c Mon Sep 17 00:00:00 2001 From: Nikola Matic Date: Wed, 11 Jan 2023 12:40:07 +0100 Subject: [PATCH] basename to step --- solc/CommandLineInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index c687d44b5..1d64fa494 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -589,7 +589,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da void CommandLineInterface::createJson(string const& _fileName, string const& _json) { - createFile(boost::filesystem::basename(_fileName) + string(".json"), _json); + createFile(boost::filesystem::path(_fileName).stem().string() + string(".json"), _json); } bool CommandLineInterface::run(int _argc, char const* const* _argv)