timhutton / twitter-archive-parser

Python code to parse a Twitter archive and output in various ways

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: hardcoded media/ as the output folder

twoscomplement opened this issue · comments

    Minor oversight: you have now accidentally hardcoded media/ as the output folder in line 105

body = header + body + f'\n\n<img src="media/tweet.ico" width="12" />

and 139, 140

 if not os.path.isfile('media/tweet.ico'):
         shutil.copy('assets/images/favicon.ico', 'media/tweet.ico');

where it should use the variable output_media_folder_name ...

Originally posted by @jwildeboer in #43 (comment)