Skip to content
Snippets Groups Projects
Commit 4940bce3 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Strip file format strings from the output file name

parent b0662750
No related branches found
No related tags found
No related merge requests found
...@@ -33,10 +33,11 @@ if (ignore_z_stage) { ...@@ -33,10 +33,11 @@ if (ignore_z_stage) {
tileconfigs = get_tileconfig_files(input_dir); tileconfigs = get_tileconfig_files(input_dir);
for (i = 0; i < tileconfigs.length; i++) { for (i = 0; i < tileconfigs.length; i++) {
layout_file = tileconfigs[i]; layout_file = tileconfigs[i];
export_file = input_dir + '/'; ds_name = replace(layout_file, '.txt', '');
export_file += replace(layout_file, '.txt', export_format); ds_name = replace(ds_name, '.ics', '');
preview_file = input_dir + '/'; ds_name = replace(ds_name, '.ids', '');
preview_file += replace(layout_file, '.txt', '_preview.jpg'); export_file = input_dir + '/' + ds_name + export_format;
preview_file = input_dir + '/' + ds_name + '_preview.jpg';
param = tpl + "layout_file=[" + layout_file + "]"; param = tpl + "layout_file=[" + layout_file + "]";
print(hr); print(hr);
print("*** [" + name + "]: processing " + layout_file); print("*** [" + name + "]: processing " + layout_file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment