pypfop 0.2.0 and environment variable FOP_CMD

 ̄綄美尐妖づ 提交于 2019-12-24 12:53:00

问题


I'm trying to get working pypfop 0.2.0 with this tutorial. Unfortunately I'm not able to pass through step 2.2:

Decompress in wherever place you like and set environment variable FOP_CMD to the bin/fop of the decompressed folder.

Links seem broken so I downloaded binary package from here but suppose it doesn't matter. However, if I decompress the package no path bin/fop is presneted.

My current FOP_CMD setup (I've decompressed fop package into ~/utils):

$ echo $FOP_CMD
~/utils/fop-1.1

Now I get this exception if I try to run example from the tutorial:

Exception: Unable to find the path to execute FOP.Check the environment variable "FOP_CMD"

The question is, what should be environment variable FOP_CMD set for?


回答1:


OK, I've finally found out the answer and it is very simple: the correct way is fop-1.1/fop.



来源:https://stackoverflow.com/questions/26236826/pypfop-0-2-0-and-environment-variable-fop-cmd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!