Hi, First of all thanks for creating this wonderful project.
I plan to use some parts of your project for my work. While studying the code in your project I realized that your Config class makes use of tempfile and shutil simultaneously, which causes a problem in windows software.
The problem arises when you create the tempfile using NamedTemporaryFile and then use shutils.copyfile. Once the temporary file is created it is opened automatically, then when you use shutils.copyfile, it tries to open the file again and windows doesn't allow it. So an easy workaround would be to close automatic deletion of the file and close the file before copying stuff into it. Later you can reopen the file and finally close and manually delete it.
Hi, First of all thanks for creating this wonderful project. I plan to use some parts of your project for my work. While studying the code in your project I realized that your Config class makes use of tempfile and shutil simultaneously, which causes a problem in windows software.
The problem arises when you create the tempfile using NamedTemporaryFile and then use shutils.copyfile. Once the temporary file is created it is opened automatically, then when you use shutils.copyfile, it tries to open the file again and windows doesn't allow it. So an easy workaround would be to close automatic deletion of the file and close the file before copying stuff into it. Later you can reopen the file and finally close and manually delete it.
So on high level:
I will mention the complete modified
_file2dict
method here for reference:P.S - I apologize for not creating a proper pull request, my schedule is a bit tight these days.