Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Pkg.test("DICOM") on Windows #21

Merged
merged 1 commit into from
Jan 16, 2018
Merged

Fix for Pkg.test("DICOM") on Windows #21

merged 1 commit into from
Jan 16, 2018

Conversation

notZaki
Copy link
Member

@notZaki notZaki commented Jan 7, 2018

Pkg.test("DICOM") was working for me on Linux, but didn't work on Windows. This PR should fix that.

Seems the issue is that tempname() creates a new file on Windows (see JuliaLang/julia#9053).
So doing dir = tempname() and then mkpath(dir) produces an error because dir already exists - as a file.

Fix is to use dir = mktempdir(), which works on both Windows and Linux.
I also gave the zip file a name in order to avoid using tempname(). Could've replaced it with randstring(), but I didn't see the need for it to have a random name.

@ihnorton ihnorton merged commit 8f87310 into JuliaHealth:master Jan 16, 2018
@ihnorton
Copy link
Collaborator

Thanks!

@notZaki notZaki deleted the runtest4Win branch January 20, 2018 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants