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.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.