SGL-UT / GPSTk

ATTENTION: This repository has been moved and is for archival purposes only. GPSTk toolkit has been renamed to GNSSTK and has been split into two new separate repositories. GNSSTK now only contains libraries while the other repository GNSSTK-APPS contains only applications. The rename and split into libraries and applications started with version v12.0.0 on September 2021. GPSTk --> GNSSTK at https://gitlab.com/sgl-ut/gnsstk --> GNSSTK-APPS at https://gitlab.com/sgl-ut/gnsstk-apps
Other
342 stars 185 forks source link

gpstk_builder.py file copying fix #2

Closed rumkex closed 8 years ago

rumkex commented 10 years ago

This will fix the situation when target directory for python libs is located, for example, on a different partition (splitting /home and root is common), and os.rename throws an error, resulting in no files being copied at all.

It also closes the handle of the generated file beforehand to prevent incomplete copy.