aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds
diff options
context:
space:
mode:
authorBenedikt Tutzer <e1225461@student.tuwien.ac.at>2019-04-04 09:24:50 +0200
committerBenedikt Tutzer <e1225461@student.tuwien.ac.at>2019-04-04 09:24:50 +0200
commite64b3f107411c150bbc773fc72b915bc60813c52 (patch)
treef2c339a0cdf2e9e4cc06a9aec46bcd3c1f6b9738 /passes/cmds
parentc3486c42709f0d1cfaca1fc24c86e0211f35996d (diff)
downloadyosys-e64b3f107411c150bbc773fc72b915bc60813c52.tar.gz
yosys-e64b3f107411c150bbc773fc72b915bc60813c52.tar.bz2
yosys-e64b3f107411c150bbc773fc72b915bc60813c52.zip
Changed filesystem dependency to boost instead of experimental std library
Diffstat (limited to 'passes/cmds')
-rw-r--r--passes/cmds/plugin.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/passes/cmds/plugin.cc b/passes/cmds/plugin.cc
index 60dab38dd..5da8f5b0b 100644
--- a/passes/cmds/plugin.cc
+++ b/passes/cmds/plugin.cc
@@ -26,7 +26,7 @@
#ifdef WITH_PYTHON
# include <boost/algorithm/string/predicate.hpp>
# include <Python.h>
-# include <experimental/filesystem>
+# include <boost/filesystem.hpp>
#endif
YOSYS_NAMESPACE_BEGIN
@@ -53,7 +53,7 @@ void load_plugin(std::string filename, std::vector<std::string> aliases)
#ifdef WITH_PYTHON
- std::experimental::filesystem::path full_path(filename);
+ boost::filesystem::path full_path(filename);
if(strcmp(full_path.extension().c_str(), ".py") == 0)
{
@@ -63,6 +63,7 @@ void load_plugin(std::string filename, std::vector<std::string> aliases)
PyRun_SimpleString(("sys.path.insert(0,\""+path+"\")").c_str());
PyErr_Print();
PyObject *filename_p = PyUnicode_FromString(filename.c_str());
+
if(filename_p == NULL)
{
PyErr_Print();