8000 [Question] Possible to access environment variable in #load? · Issue #655 · dotnet-script/dotnet-script · GitHub
[go: up one dir, main page]

Skip to content
[Question] Possible to access environment variable in #load? #655
Closed
@MostHated

Description

@MostHated

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:

#load "~/.csx/shell.csx"
#load "$HOME/.csx/shell.csx"

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0