Add screenshots to the right place
Signed-off-by: Mario Danic <mario@lovelyhq.com>
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
@ -79,16 +79,13 @@ def main():
|
|||||||
short_desc = e.find('.//string[@name="nc_store_short_desc"]')
|
short_desc = e.find('.//string[@name="nc_store_short_desc"]')
|
||||||
full_desc = e.find('.//string[@name="nc_store_full_desc"]')
|
full_desc = e.find('.//string[@name="nc_store_full_desc"]')
|
||||||
if short_desc is not None:
|
if short_desc is not None:
|
||||||
save_file(short_desc.text, LANG_MAP[entry], 'short_description.txt', False)
|
save_file(short_desc.text, LANG_MAP[entry], 'short_description.txt')
|
||||||
if full_desc is not None:
|
if full_desc is not None:
|
||||||
save_file(full_desc.text, LANG_MAP[entry], 'full_description.txt', False)
|
save_file(full_desc.text, LANG_MAP[entry], 'full_description.txt')
|
||||||
|
|
||||||
|
|
||||||
def save_file(text, directory, filename, dev):
|
def save_file(text, directory, filename):
|
||||||
if dev:
|
directory_path = os.path.join(PATH, METADATA_PATH, directory)
|
||||||
directory_path = os.path.join(PATH, METADATA_DEV_PATH, directory)
|
|
||||||
else:
|
|
||||||
directory_path = os.path.join(PATH, METADATA_PATH, directory)
|
|
||||||
|
|
||||||
if not os.path.exists(directory_path):
|
if not os.path.exists(directory_path):
|
||||||
os.makedirs(directory_path)
|
os.makedirs(directory_path)
|
||||||
|