Default directories for Lua Libraries and Lua scripts...
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Default directories for Lua Libraries and Lua scripts...

Started by PPK, 27 September, 2006, 09:03:31

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PPK

Lua 5.1.1 have nice config file to config default things in Lua. One of them is default directories for lua libraries and lua scripts where look for them require function. For now it is specified for lua libraries as PtokaX root, and for scripts it is scripts folder. Maybe will be better to improve it and for this is here this poll and this thread ::)

I will like something like libs directory for lua libraries and something like libs/scripts for scripts used by require, because they will cause problems when it will be in scripts folder (for example luasocket have very much scripts to initialize all part of library).
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

bastya_elvtars

I use scripts/libs. But we can always specify package.path (for Lua modules) and package.cpath (for C libraries).
Everything could have been anything else and it would have just as much meaning.

TiMeTrAVelleR

Would add libs  folder in root ptokax best way to prefent probs where to put them as every scripter uses his own way

:)


Herodes

Although this is a minor issue as bastya_elvtars mentioned,...
I voted for root/scripts/libs/ directory cause the libraries are concerning the scripts, not the host program.

st0ne-db

I agree with Herodes and bastya. I too voted for Scripts\libs directory. After all, is the scripts that are using the libs directly. not the hubsoft.

HappyTheMan

Quote from: Herodes on 27 September, 2006, 17:30:51
I voted for root/scripts/libs/ directory cause the libraries are concerning the scripts, not the host program.
unbeatable argument i think

PPK

Ok, next PtokaX version have defined paths root, root\libs and root\scripts\libs ::)
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

SMF spam blocked by CleanTalk