Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Folder for user scripts
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Folder for user scripts
#19231
Folder for user scripts 1 Year, 7 Months ago  
Is it possible to put the scripts not only into the main program folder (i.e. "%ProgramFiles%/Rainlendar/scripts" on Windows), but into the user settings directory as well (i.e. "%USERPROFILE%\.rainlendar2\scripts") ?

It's not easy to add/change the scripts in the main program directory - some users could not have the write permissions there, and additionally, it's better to have all user files together in one place - so, in user directory.
bee2see
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19238
Re: Folder for user scripts 1 Year, 7 Months ago  
It's not supported at the moment but I can change that.
Rainy
Moderator
Posts: 6092
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#20930
Re:Folder for user scripts 8 Months, 3 Weeks ago  
As user scripts directory been implemented recently?
I would also suggest:
"%ProgramFiles%/Rainlendar2/scripts" For all users (read only)
"%ALLUSERSPROFILE%\.rainlendar2\scripts" For all users (shared)
"%USERPROFILE%\.rainlendar2\scripts" For a user

In the meanwhile: How could I detect the current user from Lua?
Nilfred
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Argentina
Last Edit: 2014/03/30 19:13 By Nilfred.Reason: Bad English
The administrator has disabled public write access.
 
#20931
Re:Folder for user scripts 8 Months, 3 Weeks ago  
You can put the scripts also to %USERPROFILE%\.rainlendar2\scripts folder.

The username can be read e.g. from the environment variable:
Code:

os.getenv("username")
Rainy
Moderator
Posts: 6092
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop