Modified README.md to reflect that the port restriction has been fixed

This commit is contained in:
DUOLabs333 2021-09-25 11:25:39 -04:00
parent 5821e5a0dc
commit 40c16b769f
2 changed files with 4 additions and 4 deletions

View File

@ -10,5 +10,5 @@ If there are any issues, please let me know.
1. Download the repository
1. Open a terminal
1. `cd` into the folder where you downloaded it
1. In the folder, type *exactly* this: `python -m http.server --directory www.photopea.com 8887`
1. Open [http://localhost:8887](http://localhost:8887). It should load and you can use it like normal.
1. In the folder, type this: `python -m http.server --directory www.photopea.com 8080`
1. Open [http://localhost:8080](http://localhost:8080). It should load and you can use it like normal.

View File

@ -100,10 +100,10 @@ for font in decompress_font_list(db["FNTS"]["list"]):
if not os.path.isfile(root + path):
dl_file(path)
#Delete any unused fonts
fonts_db=[root+'rsrc/fonts/'+font.url for font in decompress_font_list(db["FNTS"]["list"])]
fonts_local=glob.glob(root + 'rsrc/fonts/'+'/**/*.otf', recursive=True)
fonts_local=glob.glob(root + 'rsrc/fonts/'+'/**/*.{otf,ttf,ttc}', recursive=True)
for font_file in list(set(fonts_local)-set(fonts_db)):
os.remove(font_file)