Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zyr17 committed Mar 14, 2024
1 parent e2b0579 commit 6288b8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/algo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ int Access(const char *filename, int mode){
std::string full_filename = Header::datafolderprefix + filename;
#ifdef __APPLE__
// 如果是访问data,apple需要重设路径到Header::appledatafolderprefix
if (filename.find("data/") == 0)
std::string filename_string = filename;
if (filename_string.find("data/") == 0)
full_filename = Header::appledatafolderprefix + filename;
#endif
std::cout << "Access " << full_filename << '\n';
Expand Down

0 comments on commit 6288b8d

Please sign in to comment.