wondering if it was possible to get the knime workspace directory for the working being worked on, I know there already is a knime workspace variable but it only has part when i need all the way to the workflow itself, say my workflow name is ‘testing’ then i’d need all hte way to
So you can use the String Manipulation (Variable) to add “\testing” at the end of the “workspace” variable.
The expression looks like this:
yes, but lets say i share testing with another person and they go ahead and save testing in the following way:
preferably we’d have a function to getcwd to reveal where it is.
I testing getcwd in py but gives me another location altogether
What is use of the path?
FYI, using “knime://knime.workflow/” points to the current directory of the workflow, wherever it is. Is that what you’re looking for?
Use the String Manipulation (Variable) node and enter this expression:
Use the URL to File Path (Variable) node to generate the absolute path.
Use the Table Creator node, enter “knime://knime.workflow” as a single cell value.
Use the URL to File Path node to generate the absolute path.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.