properties for a lib

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
simpleSimon
Posts: 10
Joined: 03 Mar 2016, 21:07

properties for a lib

Post by simpleSimon »

I am writing several extensions and they are going to be sharing a database class which I will put in the extensions/lib folder. What is the best place to put a dot properties file for the library and how do I specify the path to it?

Thanks
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: properties for a lib

Post by Lapo »

Hi,
if you want to user relative paths you can keep in mind that the "current directory" is the main SFS2X/ folder, where the launchers are located (sfs2x.sh and sfs2x-service).

You can build your path starting from that folder. In other words if you store the properties file under the __lib__/ folder then your relative path will be --> "extensions/__lib__/filename.properties"

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply