For tensorflow::io, on windows use '\' as path separator.
PiperOrigin-RevId: 301402270 Change-Id: I523e2fa22abe8771df52f624ca0df6481cf10a28
This commit is contained in:
parent
ba5e03c88b
commit
67d89da9b5
@ -38,7 +38,11 @@ namespace io {
|
||||
namespace internal {
|
||||
namespace {
|
||||
|
||||
#if defined(PLATFORM_WINDOWS)
|
||||
const char kPathSep[] = "\\";
|
||||
#else
|
||||
const char kPathSep[] = "/";
|
||||
#endif // PLATFORM_WINDOWS
|
||||
|
||||
bool FixBazelEnvPath(const char* path, string* out) {
|
||||
if (path == nullptr) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user