ashleynewson / SmartSim

Design and simulate digital logic circuits of varying complexity.
smartsim.org.uk
GNU General Public License v3.0
187 stars 30 forks source link

Relative paths are not being saved correctly in projects #15

Open Charlie-Sumorok opened 1 year ago

Charlie-Sumorok commented 1 year ago

Project before saving: before.zip

Project after saving: after.zip

Changing Project.relative_filename from

return Core.absolute_filename (rawTargetFilename, this.filename);

to

return Core.relative_filename (absolute_filename (rawTargetFilename), GLib.Path.get_dirname (this.filename));

should fix the problem.