@@ -15,7 +15,7 @@ def clean_html_tags(text):
1515
1616def generate_readme (metadata , folder , token = None ):
1717 """
18- Generate README.md file.
18+ Generate README.txt file.
1919
2020 This function uses the template assets/README.txt
2121
@@ -36,7 +36,7 @@ def generate_readme(metadata, folder, token=None):
3636 citation = dvcurator .dataverse .get_citation (metadata )
3737 folder = dvcurator .fs .current_step (folder )
3838
39- readme_name = "README_" + dvcurator .rename .last_name_prefix (citation ) + ".md "
39+ readme_name = "README_" + dvcurator .rename .last_name_prefix (citation ) + ".txt "
4040 readme_name = unicodedata .normalize ('NFKD' , readme_name ).encode ('ascii' , 'ignore' ).decode ('ascii' )
4141 new_path = os .path .join (folder , ".." , readme_name )
4242 if os .path .exists (new_path ):
@@ -80,9 +80,9 @@ def generate_readme(metadata, folder, token=None):
8080
8181 # the location of the template differs if this is a compiled pyinstaller file or run directly
8282 if getattr (sys , 'frozen' , False ) and hasattr (sys , '_MEIPASS' ):
83- path = os .path .join (sys ._MEIPASS , "assets" , "README.md " )
83+ path = os .path .join (sys ._MEIPASS , "assets" , "README.txt " )
8484 else :
85- path = resource_filename ("dvcurator" , "assets/README.md " )
85+ path = resource_filename ("dvcurator" , "assets/README.txt " )
8686
8787 # write the actual file
8888 with open (path , 'r' ) as f :
0 commit comments