Hi Chad,
FME.exe will quit with return code 0 on success and -1 on failure.
You can get these returncodes from python:
http://docs.python.org/library/subprocess.html (eg using check_call).
Hope this helps
Jeff
On 20 Jan 2011, at 04:29, supercooper wrote:
> Let's say that I am calling a workspace from a Python script, like so:
>
> os.system('fme.exe Z:/FME/Workspaces/PPT/
> CreateActualPerfedIntervalSDE.fmw --LastPerf %s --FirstPerf %s --
> DestDataset_GEODATABASE_SDE sde --SourceDataset_GEODATABASE_SDE sde --
> Input_PA_Well_ID %s' % (last, first, well_id))
>
> Is there a way to return a value from my workspace (like a completion
> code or a attribute) back to my calling application (the Python
> script)?
>
> Thanks
>
> chad
>
> --
> Get all the FME resources you need at
http://www.fmeusercentral.com
>
> You received this message because you are subscribed to the Google Groups "FME Talk" group.
>
> To post to this group, send email to
fmetalk@goog...
> To unsubscribe from this group, send email to
fmetalk-unsubscribe@goog...
--
Get all the FME resources you need at
http://www.fmeusercentral.com
You received this message because you are subscribed to the Google Groups "FME Talk" group.
To post to this group, send email to
fmetalk@goog...
To unsubscribe from this group, send email to
fmetalk-unsubscribe@goog...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.