%UserProfile% support

Why doesn’t dynamo support the use of %UserProfile% in file paths and directory paths?
Is there a workaround?

Thanks is advance

Ah they take file paths as strings so no support for this. I would bring this up here:

Ps. Here’s a simple solution to doing this on your own in Python node for example:

Hello @Konrad_K_Sobon,

I have the same problem with a path. Our files are stored in OneDrive.
Each user has the files sincronized, and always stored on their computer.

My programming skills are very low, and I am not able to create a python script to solve the problem.

Could you help me?

Use that Python-Code:

# Phython-Standard- und DesignScript-Bibliotheken laden
import sys
import clr
import System

path = IN[0]

OUT = System.Environment.ExpandEnvironmentVariables(path)
2 Likes

@s.hofer6LSK7
He will definitely reply to your post 7 years later #sarcasm

4 Likes