Commit f5712d0c authored by Neal Wu's avatar Neal Wu
Browse files

Replaced direct path concatenation with os.path.join

parent 706f7333
...@@ -42,7 +42,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin ...@@ -42,7 +42,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
word2vec = tf.load_op_library(os.path.dirname(os.path.realpath(__file__)) + '/word2vec_ops.so') word2vec = tf.load_op_library(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'word2vec_ops.so'))
flags = tf.app.flags flags = tf.app.flags
......
...@@ -41,7 +41,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin ...@@ -41,7 +41,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
word2vec = tf.load_op_library(os.path.dirname(os.path.realpath(__file__)) + '/word2vec_ops.so') word2vec = tf.load_op_library(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'word2vec_ops.so'))
flags = tf.app.flags flags = tf.app.flags
......
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