path %userprofile% for Linux and MacOS?

Started by fielder, December 26, 2018, 17:03:19

Previous topic - Next topic

fielder

in Windows usually i use these "virtual" path provided by microsoft to identify the User folder...
how i can do this on Linux and MacOS? i've to use the bah.volumes?

dawlane

#1
Linux/OSX use path systems variables are $HOME. Additional user environment variables are usually store in a hidden file called .bash_profile or just .profile.
To see other variable type in a command console: printenv

fielder

Quote from: dawlane on December 26, 2018, 17:31:26
Linux/OSX use path systems variables are $HOME. Additional user environment variables are usually store in a hidden file called .bash_profile or just .profile.
To see other variable type in a command console: printenv
Thanks Dawlane

TomToad

Use bah.volumes from Brucey's modules. It uses cross platform functions to get the user directory, app directory, document directory,etc...
------------------------------------------------
8 rabbits equals 1 rabbyte.

fielder

Quote from: TomToad on December 30, 2018, 21:10:36
Use bah.volumes from Brucey's modules. It uses cross platform functions to get the user directory, app directory, document directory,etc...
i finally used the bah.volume it's working fine :)