mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2025-07-02 19:05:31 +00:00
Modified README.md to reflect that the port restriction has been fixed
This commit is contained in:
parent
5821e5a0dc
commit
40c16b769f
@ -10,5 +10,5 @@ If there are any issues, please let me know.
|
|||||||
1. Download the repository
|
1. Download the repository
|
||||||
1. Open a terminal
|
1. Open a terminal
|
||||||
1. `cd` into the folder where you downloaded it
|
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. In the folder, type this: `python -m http.server --directory www.photopea.com 8080`
|
||||||
1. Open [http://localhost:8887](http://localhost:8887). It should load and you can use it like normal.
|
1. Open [http://localhost:8080](http://localhost:8080). It should load and you can use it like normal.
|
||||||
|
@ -100,10 +100,10 @@ for font in decompress_font_list(db["FNTS"]["list"]):
|
|||||||
if not os.path.isfile(root + path):
|
if not os.path.isfile(root + path):
|
||||||
dl_file(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_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)):
|
for font_file in list(set(fonts_local)-set(fonts_db)):
|
||||||
os.remove(font_file)
|
os.remove(font_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user