Get database path from new configuration file param

This commit is contained in:
jmartin 2014-11-17 16:51:35 +01:00
parent 56d9022ec3
commit 4f69f03022
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class CSVArchive(Workflow, ModelSQL, ModelView):
@classmethod
def set_data(cls, archives, name, value):
cursor = Transaction().cursor
path = os.path.join(config.get('data_path', '/var/lib/trytond'),
path = os.path.join(config.get('database', 'path'),
cursor.database_name, 'csv_import')
if not os.path.exists(path):
os.makedirs(path, mode=0777)