Fix windows symlink bug (#248)
This commit is contained in:
parent
b40eafdbb0
commit
897ef161bf
@ -499,7 +499,15 @@ def setup_frontend():
|
||||
install_frontend_packages()
|
||||
|
||||
# Link the assets folder.
|
||||
ln(src=os.path.join("..", constants.APP_ASSETS_DIR), dest=constants.WEB_ASSETS_DIR)
|
||||
if platform.system() == "Windows":
|
||||
# copy asset files to public folder
|
||||
mkdir(constants.WEB_ASSETS_DIR)
|
||||
cp(src=constants.APP_ASSETS_DIR, dest=constants.WEB_ASSETS_DIR)
|
||||
else:
|
||||
ln(
|
||||
src=os.path.join("..", constants.APP_ASSETS_DIR),
|
||||
dest=constants.WEB_ASSETS_DIR,
|
||||
)
|
||||
|
||||
|
||||
def run_frontend(app: App):
|
||||
|
Loading…
Reference in New Issue
Block a user