Skip to content

Commit

Permalink
Script: joint file paths as discrete steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeezer committed Dec 24, 2024
1 parent 30a1ab0 commit e7a370b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pretext/pretext.py
Original file line number Diff line number Diff line change
Expand Up @@ -3136,10 +3136,10 @@ def epub(xml_source, pub_file, out_file, dest_dir, math_format, stringparams):

# All styles are baked into one of these two files
if math_format == "kindle":
css = os.path.join(get_ptx_xsl_path(), "../css/dist/kindle.css")
css = os.path.join(get_ptx_xsl_path(), "..", "css", "dist", "kindle.css")
shutil.copy2(css, css_dir)
if math_format == "svg":
css = os.path.join(get_ptx_xsl_path(), "../css/dist/epub.css")
css = os.path.join(get_ptx_xsl_path(), "..", "css", "dist", "epub.css")
shutil.copy2(css, css_dir)

# EPUB Cover File
Expand Down Expand Up @@ -3595,10 +3595,10 @@ def _place_runestone_services(tmp_dir, stringparams):

# Helper to move a prebuilt css theme into the build directory as theme.css
def _move_prebuilt_theme(theme_name, theme_opts, tmp_dir):
css_src = os.path.join(get_ptx_path(), "css/dist")
css_src = os.path.join(get_ptx_path(), "css", "dist")
css_dest = os.path.join(tmp_dir, "_static", "pretext", "css")

src = os.path.join(get_ptx_path(), "css/dist/theme-{}.css".format(theme_name))
src = os.path.join(get_ptx_path(), "css", "dist", "theme-{}.css".format(theme_name))
dest = os.path.join(get_ptx_path(), os.path.join(css_dest, "theme.css"))

# ugly to have this here - it exists for more general use in _palette-dual.scss,
Expand Down

0 comments on commit e7a370b

Please sign in to comment.