Allow trailing slash in solc -allow-paths.

This commit is contained in:
Sergiusz Bazanski
2017-10-06 13:55:18 +01:00
committed by Alex Beregszaszi
parent 094012dbb0
commit 71a819654e
+1 -1
View File
@@ -717,7 +717,7 @@ bool CommandLineInterface::processInput()
{
vector<string> paths;
for (string const& path: boost::split(paths, m_args[g_argAllowPaths].as<string>(), boost::is_any_of(",")))
m_allowedDirectories.push_back(boost::filesystem::path(path));
m_allowedDirectories.push_back(boost::filesystem::path(path).remove_trailing_separator());
}
if (m_args.count(g_argStandardJSON))