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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy