# Standard location to put extension info?

**URL:** <https://www.ruby-forum.com/t/standard-location-to-put-extension-info/120745>\
**Category:** Ruby\
**Created:** [November 20, 2007, 10:40am UTC](https://www.ruby-forum.com/t/standard-location-to-put-extension-info/120745 "2007-11-20T10:40:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chintana\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@Chintana\_W](https://www.ruby-forum.com/u/Chintana_W)\
**Post date:** [November 20, 2007, 10:40am UTC](https://www.ruby-forum.com/t/standard-location-to-put-extension-info/120745/1 "2007-11-20T10:40:31Z")

</div>

Hi,

I need to store some information such as the default log level, an  
absolute path that’ll contains the repository location in the file  
system for an extension written in C. This extension is a wrapper to  
a library and I need to pass this information on to those library  
functions. The “repository location” will change depending on where  
the users have installed the library.

Is there a standard way of doing it without depending on the  
configuration files/settings from a framework such as Ruby on Rails?  
That way the extension will be usable regardless of the framework  
being used. Any clues, pointers how am I to go about doing this will  
greatly be appreciated.

Thanks in advance,

Bye,

```
-Chintana
```
