Hi,
In the docs, it mentions that
tv_version "username"
may be empty.
It is empty when I use this command on my mac, but returns username fine on windows. I want the username so that I can create files/folders in /Users/<username>/Documents on my mac.
Is this possible?
thanks
tv_version "username" Topic is solved
- Jeremy Richard
- Posts: 53
- Joined: 16 Oct 2021, 01:44
- Contact:
Re: tv_version "username"
As an alternative you could maybe use tv_getpath?
tv_getpath home shows,
Code: Select all
tv_getpath home
tv_warn RESULT
- on Windows: C:\Users\MyUsername\Documents
- on macOS: /Users/MyUsername
- on Linux: /home/MyUsername
Code: Select all
tv_getpath home
user_directory = RESULT
export_path = user_directory"/Documents"
-
- Posts: 10
- Joined: 02 Jun 2023, 08:19
Re: tv_version "username"
Thank you so much! That works!!
cheers,
Jason
cheers,
Jason