Skip to content

Commit

Permalink
Fixing the files path issue on windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
SeqLaz committed Oct 2, 2024
1 parent 7901b65 commit 0ada033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libqfieldsync/utils/qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def make_temp_qgis_file(project: QgsProject) -> str:
project_backup_dir = tempfile.mkdtemp()
original_filename = project.fileName()
backup_filename = os.path.join(project_backup_dir, f"{project.baseName()}.qgs")
project.write(backup_filename)
# NOTE: This makes the conversion of the project mess with the datasource on Windows
# project.write(backup_filename)
project.setFileName(original_filename)

return backup_filename
Expand Down

0 comments on commit 0ada033

Please sign in to comment.