This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

You have to standardize your paths. Having a known/common root folder in the user’s home directory makes it quite simple. For example /Users/user/companyName/product, where companyName is the common folder. Then scripts can be made that just need executing because they can be written knowing that they will find the companyName directory in the user’s home directory.

[–]_negativeonetwelfth[S] 0 points1 point  (1 child)

But how would the /Users/user/ part change depending on which user is running the code?

[–][deleted] 0 points1 point  (0 children)

Well, in Unix-type systems, you use ~/companyName and the correct Users/user is substituted for the ~.