| 1 |
@echo off |
| 2 |
echo Configuring the system path to add FontForge... |
| 3 |
set FF=%~dp0 |
| 4 |
set "PYTHONHOME=%FF%" |
| 5 |
|
| 6 |
if not defined FF_PATH_ADDED ( |
| 7 |
set "PATH=%FF%;%FF%\bin;%PATH:"=%" |
| 8 |
set FF_PATH_ADDED=TRUE |
| 9 |
) |
| 10 |
|
| 11 |
for /F "tokens=* USEBACKQ" %%f IN (`dir /b "%FF%lib\python*"`) do ( |
| 12 |
set "PYTHONPATH=%FF%lib\%%f" |
| 13 |
) |
| 14 |
|
| 15 |
echo Configuration complete. You can now call 'fontforge' from the console. |
| 16 |
echo You may also use the bundled Python distribution by calling `ffpython`. |
| 17 |
echo Extra Python modules that you require may be installed via `ffpython`. |
| 18 |
echo. |
| 19 |
cmd /k |