For tensorflow::io, on windows use '\' as path separator.

PiperOrigin-RevId: 301402270
Change-Id: I523e2fa22abe8771df52f624ca0df6481cf10a28
This commit is contained in:
Gunhan Gulsoy 2020-03-17 10:29:40 -07:00 committed by TensorFlower Gardener
parent ba5e03c88b
commit 67d89da9b5

View File

@ -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;