I have a workspace that reads other workspaces, to do an inventory. I have looked for the Startup Python Script but I can't find it, does the FeatureReader not read that information?
Solved
FeatureReader reading fmw file - read Scripting / startup python script
Best answer by david_r
@nielsgerrits is right, unfortunately the FMW reader does not return the startup or shutdown script. You have to read the .fmw file as a text file and look for lines starting with either FME_BEGIN_PYTHON or FME_END_PYTHON.
For decoding, you should use the following from the fmeobjects module:
decoded_str = fmeobjects.FMESession().decodeFromFMEParsableText(encoded_str)While you're at it, you might also be interested in looking for a line that contains "PYTHON_COMPATIBILITY=" to complete your inventory.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Login to the community
No account yet? Create an account
An FME Account is required to contribute
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.



