Commit c30f4ef5 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

fix: path using os library

fix: typo in ts template
parent 63a4ddc0
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -164,8 +164,11 @@ CSS_SRC = list_css_files()
if not os.path.exists(DEST):
    os.makedirs(DEST)

SRC_MEDIA_PATH = os.path.join(SRC, "media")
DEST_MEDIA_PATH = os.path.join(DEST, "media")

# Copy images over
if not os.path.exists(f"{SRC}/media"):
if not os.path.exists(SRC_MEDIA_PATH):
    print(
        p_error(
            f"Source directory {SRC} must contain a media directory containing the images used in the document"
@@ -173,10 +176,10 @@ if not os.path.exists(f"{SRC}/media"):
    )
    sys.exit(1)

if os.path.exists(f"{DEST}/media"):
    shutil.rmtree(f"{DEST}/media")
if os.path.exists(DEST_MEDIA_PATH):
    shutil.rmtree(DEST_MEDIA_PATH)

shutil.copytree(f"{SRC}/media", f"{DEST}/media")
shutil.copytree(SRC_MEDIA_PATH, DEST_MEDIA_PATH)
# endregion


+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ The following referenced documents are necessary for the application of the pres
[n.1] Reference body

[n.2] Reference body
::
:::

## 2.2 Informative references