diff options
author | Evgeny Mazovetskiy <otzy@users.noreply.github.com> | 2017-02-08 20:11:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-08 20:11:04 +0100 |
commit | 00c2ae32880b8453e4d5e47d0648bcfed4a39c18 (patch) | |
tree | 9923250cafdb972b33bcfdf3a86db71b281374ba /tensorflow/examples/udacity | |
parent | e946a6b63979a63f9e5a1d1603f6cc21d8aad1cf (diff) |
set correct target directory for tar extractall()
fixes a wrong path when data_root is other than '.'
Diffstat (limited to 'tensorflow/examples/udacity')
-rw-r--r-- | tensorflow/examples/udacity/1_notmnist.ipynb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/udacity/1_notmnist.ipynb b/tensorflow/examples/udacity/1_notmnist.ipynb index 4b0a20b1dd..521cbf3000 100644 --- a/tensorflow/examples/udacity/1_notmnist.ipynb +++ b/tensorflow/examples/udacity/1_notmnist.ipynb @@ -219,7 +219,7 @@ " print('Extracting data for %s. This may take a while. Please wait.' % root)\n", " tar = tarfile.open(filename)\n", " sys.stdout.flush()\n", - " tar.extractall()\n", + " tar.extractall(data_root)\n", " tar.close()\n", " data_folders = [\n", " os.path.join(root, d) for d in sorted(os.listdir(root))\n", |