Hi Graham,

You probably noticed that if you enter $(FME_MF_DIR)<filename> gets expanded to what looks like a hard-coded path.  Actually, if you've entered it this way, then the relative path will work.  Move the workspace (and related files) to a new directory and you should be able to run the workspace from the command line, without opening and editing the workspace first.  This applies to source datasets as well as external sourced TCL files referenced in the TCLCaller.

On a side note, if you want your TCL script to write out to a file in a relative directory, use $(FME_MF_DIR_UNIX).  This does not even appear to change to a hard-coded path in the TCLCaller.  e.g. $(FME_MF_DIR_UNIX)/[FME_GetAttribute fme_basename].txt

Dan Iseminger
Safe Software


On 10/13/06, Graham Morgan < [EMAIL PROTECTED]> wrote:

err... that works.
 
Cheers, Graham


From: [email protected] [mailto:fme@yahoogroups.com ] On Behalf Of mark2atsafe
Sent: October 12, 2006 8:50 PM
To: [email protected]
Subject: [fme] Re: Use of $(FME_MF_DIR) within Workbench

Have you tried ./<filename> to get the relative path?

Mark

--- In [email protected], "Graham Morgan" <[EMAIL PROTECTED]> wrote:
>
> Folks,
>
> I am trying to batch deploy a translation that I have defined using
> Workbench 2006 GB (build 2651). The translation uses a TCLCaller
> transformer to invoke a tcl procedure within an external tcl source
> file.
>
> My problem is that I cannot hard code the explicit path of the file
> within the fmw file - I need to use relative paths to support
> deployment in the customer environment. When I use the $(FME_MF_DIR)
> macro as part of the filename, workbench instantly translates it into
> an explict path and stores that instead.
>
> I know that I can use system environment varaibles within workbench -
> but my customer will not allow this.
>
> How can I specify (and store) relative paths within workbench?
>
> Many Thanks, Graham



__._,_.___

For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com.

Safe Software has also made slides available that outline enhancements planned for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 of the FME Worldwide Users Conference. To view these slides, visit www.safe.com/2006uc.





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to