Hi,
I have a master workspace which calls inside another FME Workspace with the WorkspaceRunner Transformer. This transformers are set it up with relative paths.
I'm trying to call this master workspace with Python, but this is changing the FME_MF_DIR making it point to another disk in my machine E:\\TEMP.
This is making all my process fails because it cannot find the other workspaces.
2018-03-09 15:00:56| 0.2| 0.2|INFORM|FME 2017.1.1.1 (20171014 - Build 17652 - WIN64)2018-03-09 15:00:56| 0.2| 0.0|INFORM|FME_HOME is 'C:\\Program Files\\FME\\'
2018-03-09 15:00:57| 0.2| 0.0|INFORM|FME Desktop Professional Edition (floating)
2018-03-09 15:00:57| 0.2| 0.0|INFORM|Permanent License.
2018-03-09 15:00:57| 0.2| 0.0|INFORM|Machine host name is: rdelaparral
2018-03-09 15:00:57| 0.2| 0.0|INFORM|START - ProcessID: 13804, peak process memory usage: 32536 kB, current process memory usage: 32536 kB
2018-03-09 15:00:57| 0.2| 0.0|INFORM|FME Configuration: Command line arguments are `fme' `E:\\Temp\\runner_1520625651870_21132' `LOG_STANDARDOUT' `TRUE' `-FME_MF_DIR' `C:/Users/rdelaparral/workspace/data-tools-api/fme-runner/test'
2018-03-09 15:00:57| 0.3| 0.1|INFORM|Shared folders for formats are : C:\\Program Files\\FME\\datasources;C:\\Users\\rdelaparral\\Documents\\FME\\Formats
2018-03-09 15:00:57| 0.3| 0.0|INFORM|Shared folders for transformers are : C:\\Program Files\\FME\\transformers;C:\\Users\\rdelaparral\\Documents\\FME\\Transformers;C:\\Users\\rdelaparral\\AppData\\Roaming\\Safe Software\\FME\\FME Store\\Transformers
2018-03-09 15:00:57| 0.3| 0.0|INFORM|Shared folders for coordinate systems are : C:\\Users\\rdelaparral\\Documents\\FME\\CoordinateSystems
2018-03-09 15:00:57| 0.3| 0.0|INFORM|Shared folders for coordinate system exceptions are : C:\\Users\\rdelaparral\\Documents\\FME\\CoordinateSystemExceptions
2018-03-09 15:00:57| 0.3| 0.0|INFORM|Shared folders for coordinate system grid overrides are : C:\\Users\\rdelaparral\\Documents\\FME\\CoordinateSystemGridOverrides
2018-03-09 15:00:57| 0.3| 0.0|INFORM|Shared folders for CS-MAP transformation exceptions are : C:\\Users\\rdelaparral\\Documents\\FME\\CsmapTransformationExceptions
2018-03-09 15:00:57| 0.3| 0.0|INFORM|Shared folders for transformer categories are : C:\\Users\\rdelaparral\\Documents\\FME\\TransformerCategories
2018-03-09 15:00:57| 0.3| 0.0|INFORM|Mapping File Identifier is: solve-route-master (20180302.1)
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: Reader Keyword is `NULL_SOURCE'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: Writer Keyword is `NULL_DEST'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: Writer Group Definition Keyword is `NULL_DEST_DEF'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: Reader type is `NULL'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: Writer type is `NULL'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: No destination coordinate system set
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: Current working folder is `C:\\Program Files\\FME'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: Temporary folder is `E:\\Temp', set from environment variable `TEMP'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: FME_HOME is `C:\\Program Files\\FME\\'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: FME_BASE is 'no'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: FME_MF_DIR is 'E:\\Temp/'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: FME_MF_NAME is 'runner_1520625651870_21132'
2018-03-09 15:00:57| 0.3| 0.0|INFORM|FME Configuration: FME_PRODUCT_NAME is 'FME(R) 2017.1.1.1'
Â
When I run it from the workbench the FME_MF_DIR is set where I have the master workspace:
2018-03-01 09:19:57| 2.3| 2.3|INFORM|FME 2017.1.1.1 (20171014 - Build 17652 - WIN64)2018-03-01 09:19:57| 2.3| 0.0|INFORM|FME_HOME is 'C:\\Program Files\\FME\\'
2018-03-01 09:19:57| 2.3| 0.0|INFORM|FME Desktop Professional Edition (floating)
2018-03-01 09:19:57| 2.3| 0.0|INFORM|Permanent License.
2018-03-01 09:19:57| 2.3| 0.0|INFORM|Machine host name is: rdelaparral
2018-03-01 09:19:57| 2.3| 0.0|INFORM|START - ProcessID: 20064, peak process memory usage: 34696 kB, current process memory usage: 34696 kB
2018-03-01 09:19:57| 2.3| 0.0|INFORM|FME Configuration: Command line arguments are `C:\\Program Files\\FME\\fme.exe' `C:\\Users\\rdelaparral\\workspace\\compass-fme\\stop-upload\\fmetest'
2018-03-01 09:19:57| 2.4| 0.1|INFORM|Shared folders for formats are : C:\\Program Files\\FME\\datasources;C:\\Users\\rdelaparral\\Documents\\FME\\Formats
2018-03-01 09:19:57| 2.4| 0.0|INFORM|Shared folders for transformers are : C:\\Program Files\\FME\\transformers;C:\\Users\\rdelaparral\\Documents\\FME\\Transformers;C:\\Users\\rdelaparral\\AppData\\Roaming\\Safe Software\\FME\\FME Store\\Transformers
2018-03-01 09:19:57| 2.4| 0.0|INFORM|Shared folders for coordinate systems are : C:\\Users\\rdelaparral\\Documents\\FME\\CoordinateSystems
2018-03-01 09:19:57| 2.4| 0.0|INFORM|Shared folders for coordinate system exceptions are : C:\\Users\\rdelaparral\\Documents\\FME\\CoordinateSystemExceptions
2018-03-01 09:19:57| 2.4| 0.0|INFORM|Shared folders for coordinate system grid overrides are : C:\\Users\\rdelaparral\\Documents\\FME\\CoordinateSystemGridOverrides
2018-03-01 09:19:57| 2.4| 0.0|INFORM|Shared folders for CS-MAP transformation exceptions are : C:\\Users\\rdelaparral\\Documents\\FME\\CsmapTransformationExceptions
2018-03-01 09:19:57| 2.4| 0.0|INFORM|Shared folders for transformer categories are : C:\\Users\\rdelaparral\\Documents\\FME\\TransformerCategories
2018-03-01 09:19:57| 2.4| 0.0|INFORM|Mapping File Identifier is: solve-route (20180228.1)
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: Reader Keyword is `NULL_SOURCE'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: Writer Keyword is `MULTI_WRITER'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: Writer Group Definition Keyword is `MULTI_WRITER_DEF'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: Reader type is `NULL'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: Writer type is `MULTI_WRITER'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: No destination coordinate system set
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: Current working folder is `C:\\Users\\rdelaparral\\workspace\\fme-api\\test\\Seon.FME.Api.Portable.Core\\bin\\Debug\\netcoreapp1.1'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: Temporary folder is `E:\\Temp', set from environment variable `TEMP'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: FME_HOME is `C:\\Program Files\\FME\\'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: FME_BASE is 'no'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: FME_MF_DIR is 'C:\\Users\\rdelaparral\\workspace\\compass-fme\\stop-upload/'
2018-03-01 09:19:57| 2.4| 0.0|INFORM|FME Configuration: FME_MF_NAME is 'fmetest'
Â
Â
How can I tell python to overwrite FME_MF_DIR to the current folder where I'm running the workspace and not this temp folder?