2006-05-12 08:34:20 +02:00
|
|
|
import os
|
|
|
|
|
2006-05-16 22:32:08 +02:00
|
|
|
basedir = os.path.dirname(os.path.dirname(__file__))
|
2006-05-12 08:34:20 +02:00
|
|
|
data_dirs = [ 'sugar/browser', 'sugar/chat' ]
|
|
|
|
|
|
|
|
def internal_get_data_file(filename):
|
|
|
|
for data_dir in data_dirs:
|
|
|
|
path = os.path.abspath(os.path.join(basedir, data_dir, filename))
|
|
|
|
if os.path.isfile(path):
|
|
|
|
return path
|
|
|
|
|
|
|
|
return None
|