mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] marcoabreu commented on a change in pull request #13531: Use MXNET_HOME in a tempdir in windows to prevent access denied due t…
Date Wed, 05 Dec 2018 11:13:17 GMT
marcoabreu commented on a change in pull request #13531: Use MXNET_HOME in a tempdir in windows
to prevent access denied due t…
URL: https://github.com/apache/incubator-mxnet/pull/13531#discussion_r239024126
 
 

 ##########
 File path: ci/windows/test_py2_cpu.ps1
 ##########
 @@ -16,11 +16,18 @@
 # under the License.
 
 7z x -y windows_package.7z
+function New-TemporaryDirectory {
+    $parent = [System.IO.Path]::GetTempPath()
+    [string] $name = [System.Guid]::NewGuid()
+    New-Item -ItemType Directory -Path (Join-Path $parent $name)
+}
 $env:MXNET_LIBRARY_PATH=join-path $pwd.Path windows_package\lib\libmxnet.dll
 $env:PYTHONPATH=join-path $pwd.Path windows_package\python
 $env:MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0
+$env:MXNET_HOME=New-TemporaryDirectory
 
 Review comment:
   Please give me a quick heads up when you changed the path to a workspace relative one

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message