You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line in def save_new_file:
new_filename = new_filename_no_extension.split('.')[0] # simple algorithm to kill extension
fails for current folder notation , like '.\temp\Sandbox_report.twb'
Probably i should use the current folder, but that makes a mess of my project folder. also the check later in the function looks for existing files in the current directory (and not my '.\temp\' )
Maybe a good idea to allow also a path for new_filename_no_extention ?
The text was updated successfully, but these errors were encountered:
ok, back again. I'm not a programmer, but I also see difference in de class TWB and TWBX in save_new_file. Major things: TWBX returns filename and TWB not. TWB has option to add save_to_directory, however does not prevent overwriting (this logic is before???)
The line in def save_new_file:
new_filename = new_filename_no_extension.split('.')[0] # simple algorithm to kill extension
fails for current folder notation , like '.\temp\Sandbox_report.twb'
Probably i should use the current folder, but that makes a mess of my project folder. also the check later in the function looks for existing files in the current directory (and not my '.\temp\' )
Maybe a good idea to allow also a path for new_filename_no_extention ?
The text was updated successfully, but these errors were encountered: