のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

afdko package エラー

github/afdkoから,packageブランチを落としてきた。
FDK/tools/win/pythonがないので、FDK65322からpythonフォルダをコピーした。(FDK-25-WIN.b65322)

C:\Users\m_fujii\Desktop\04_Fonts\work>fontplot ComingSoon-Regular.ttf
Please re-install the FDK. The executable directory "C:\FDK\afdko-package\FDK\Tools\win" is missing the tool: < tx >.
or the files referenced by the shell script is missing.


C:\Users\m_fujii\Desktop\04_Fonts\work>
C:\Users\m_fujii\Desktop\04_Fonts\work>set
AFDKO_EXE_PATH="C:\FDK\afdko-package\FDK\Tools\win\"
AFDKO_Python="C:\FDK\afdko-package\FDK\Tools\win\Python\AFDKOPython27\python"
AFDKO_Python_BIN="C:\FDK\afdko-package\FDK\Tools\win\Python\AFDKOPython27\Scripts"
AFDKO_Scripts="C:\FDK\afdko-package\FDK\Tools\SharedData\FDKScripts"

proofPDFの中でエラーだな。

def CheckEnvironment():
	txPath = 'tx'
	txError = 0

	try:
		exe_dir, fdkSharedDataDir = FDKUtils.findFDKDirs()
	except FDKUtils.FDKEnvError:
		logMsg("Please re-install the FDK. Cannot find the FDK/Tools/SharedData directory.")
		raise FDKEnvironmentError

	command = "%s -u 2>&1" % (txPath)
	report = FDKUtils.runShellCmd(command)
	if "options" not in report:
			txError = 1

	if  txError:
		logMsg("Please re-install the FDK. The executable directory \"%s\" is missing the tool: < %s >." % (exe_dir, txPath ))
		logMsg("or the files referenced by the shell script is missing.")
		raise FDKEnvironmentError

	return txPath, fdkSharedDataDir