gavanderhoorn / ktransw_py

A wrapper around Fanuc Robotics' ktrans that makes it work a little more like a modern compiler
Apache License 2.0
18 stars 8 forks source link

Passing relative paths to ktrans doesn't work #2

Closed gavanderhoorn closed 8 years ago

gavanderhoorn commented 8 years ago

Something like:

ktransw /I some\rel\path\include rel\path\to\src.kl /config ..\path\to\robot.ini

results in:

Notice: Unable to find 'robot.ini',
Using basic KAREL support files.
KTRANS Version V8.30 (Build 10    5/8/2015)
[..]
File cannot be opened or created.  File: %TEMP%\ktransw-hmto47-buildd\rel\path\to\src.kl

Error executing KTrans: Error translating program: Code: 0x230054: Unknown
gavanderhoorn commented 8 years ago

Makes sense, as ktransw sets the cwd for ktrans.exe to the temporary build directory, where those relative paths don't work.