Skip to content

Commit 6d9697a

Browse files
authored
Merge pull request #349 from nbcsm/graph_tool
fix tf_graph_tool bug
2 parents 0b4ce93 + e0b28a5 commit 6d9697a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/tf_graph_tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def get_file_name_without_ext(path):
3131

3232
def replace_file_extension(path, ext):
3333
tokens = path.split('.')[:-1]
34-
return '.'.join(tokens.appends(ext))
34+
tokens.append(ext)
35+
return '.'.join(tokens)
3536

3637

3738
def append_file_name_suffix(path, suffix):

0 commit comments

Comments
 (0)