You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there,
I just had a quick question of if it might be at all possible to access environment variables within the #load portion of a script? I wanted to put some frequently used items within a folder in $HOME (~/.csx). I tried to see if I could use either of the following:
It did not seem to like that. Is there a way to accomplish this, either by pulling an env var, or perhaps setting an external shared path config value somewhere that all scripts might be able to get to, or do I just have to hard code that path?
Thanks,
-MH
The text was updated successfully, but these errors were encountered:
This is currently not possible. The path in the load directive is only resolved by dotnet-script if takes the #load "nuget:{package}, {version}" form and by the Roslyn compiler otherwise.
Uh oh!
There was an error while loading. Please reload this page.
Hey there,
I just had a quick question of if it might be at all possible to access environment variables within the #load portion of a script? I wanted to put some frequently used items within a folder in $HOME (~/.csx). I tried to see if I could use either of the following:
It did not seem to like that. Is there a way to accomplish this, either by pulling an env var, or perhaps setting an external shared path config value somewhere that all scripts might be able to get to, or do I just have to hard code that path?
Thanks,
-MH
The text was updated successfully, but these errors were encountered: