File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626 substituteInPlace hackyplayer/formvideo.py \
2727 --replace-fail 'FFMPEG_BIN = "ffmpeg"' 'FFMPEG_BIN = "${ lib . getExe' pkgs . ffmpeg "ffmpeg" } "' \
28- --replace-fail 'IMAGEMAGICK_BIN = "convert"' 'IMAGEMAGICK_BIN = "${ lib . getExe' pkgs . imagemagick "convert" } "'
28+ --replace-fail 'IMAGEMAGICK_BIN = "convert"' 'IMAGEMAGICK_BIN = "${ lib . getExe' pkgs . imagemagick "convert" } "' \
29+ --replace-fail 'APP_ROOT = Path(".")' 'APP_ROOT = Path("${ placeholder "out" } /${ hackyplayer . python . sitePackages } /hackyplayer")'
2930 '' ;
3031 } ) ;
3132 }
Original file line number Diff line number Diff line change 1616FRAMERATE = 50
1717LOUD_LEVEL = - 23
1818
19- # Paths relative to app root
20- TEMP_DIR = Path ( "temp/" ). resolve ()
21- OUT_DIR = Path ( "static/ video/ output" ). resolve ()
22- LOG_DIR = Path ( "logs/" ). resolve ()
23- RESOURCE_DIR = Path ( "resources/" ). resolve ()
24-
25- FONT_PATH = Path . joinpath ( RESOURCE_DIR , Path ( "Raleway.ttf" ))
26- BKGD_FILE = Path . joinpath ( RESOURCE_DIR , Path ( "BG_V3_LC_Shaded.mp4" ))
27- TRANSP_FILE = Path . joinpath ( RESOURCE_DIR , Path ( "transparent.png" ))
28- LOGO_FILE = Path . joinpath ( RESOURCE_DIR , Path ( "logo.svg" ))
29- SPONS_FILE = Path . joinpath ( RESOURCE_DIR , Path ( "sponsor_slide_rounded.png" ))
19+ APP_ROOT = Path ( "." ). resolve ()
20+ TEMP_DIR = APP_ROOT / "temp"
21+ OUT_DIR = APP_ROOT / "static" / " video" / " output"
22+ LOG_DIR = APP_ROOT / "logs"
23+ RESOURCE_DIR = APP_ROOT / "resources"
24+
25+ FONT_PATH = RESOURCE_DIR / "Raleway.ttf"
26+ BKGD_FILE = RESOURCE_DIR / "BG_V3_LC_Shaded.mp4"
27+ TRANSP_FILE = RESOURCE_DIR / "transparent.png"
28+ LOGO_FILE = RESOURCE_DIR / "logo.svg"
29+ SPONS_FILE = RESOURCE_DIR / "sponsor_slide_rounded.png"
3030
3131def timecode_split (timecode , framerate = FRAMERATE ):
3232 splits = timecode .split (":" )
You can’t perform that action at this time.
0 commit comments