16 lines
393 B
C++
16 lines
393 B
C++
#include <iostream>
|
|
#include <cstdlib>
|
|
#include <boost/filesystem.hpp>
|
|
|
|
using namespace std;
|
|
int main() {
|
|
boost::filesystem::path keyStorePath;
|
|
if (std::getenv("HOME") != nullptr) {
|
|
keyStorePath = boost::filesystem::path(std::getenv("HOME")) / ".ndn";
|
|
} else {
|
|
keyStorePath = boost::filesystem::current_path() / ".ndn";
|
|
}
|
|
cout << keyStorePath.string() << endl;
|
|
return 0;
|
|
}
|