Skip to content

Commit

Permalink
🐛 Fix include_pt_in_file when using Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisbr committed Dec 9, 2019
1 parent abfb358 commit e3bd8ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/files.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ function include_pt_in_file(filename::AbstractString, mark::AbstractString,
# tries to avoid a problem in Windows as shown here:
#
# https://discourse.julialang.org/t/find-what-has-locked-held-a-file/23278
orig = ""
orig = nothing
io = nothing
r = nothing
GC.gc()

# Backup the original file if required.
Expand Down

0 comments on commit e3bd8ca

Please sign in to comment.