Commit 776c4eb9 authored by rw's avatar rw

use EnsureDirExists from util.h instead of mkdir

parent 2746aabc
......@@ -574,7 +574,7 @@ static bool SaveType(const Parser &parser, const Definition &def,
}
namespace_name = *it;
namespace_dir += *it;
mkdir(namespace_dir.c_str(), S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
EnsureDirExists(namespace_dir.c_str());
std::string init_py_filename = namespace_dir + "/__init__.py";
SaveFile(init_py_filename.c_str(), "", false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment