Hello,

I am developing an application that needs some data files, but I am not sure what the best way to package and access them. For instance, I have module like:

mymodule/
   __init__.py
   run.py

   data/
     file1.dat
     file2.dat


In run.py, I can do something like:

   fname='data/file1.dat'

which will work if I run it *in* the mymodule folder. Once I install it, or want to do:

import mymodule
mymodule.run.this()

it won't know where the data/ folder is. Is there a recommended way of locating application-specific data files? If I want to save user- configuration files, is there a recommended procedure/place for these?



                thanks,


                        Brian Blais


--
Brian Blais
[EMAIL PROTECTED]
http://web.bryant.edu/~bblais



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to