Commit a2b16848 authored by Fabrice  ALLAIN's avatar Fabrice ALLAIN

fix: solve permission issues for mako tempfile if there is more than one user...

fix: solve permission issues for mako tempfile if there is more than one user on the same filesystem
parent afdd936e
......@@ -18,6 +18,7 @@ import pkg_resources as pkgr
import random
import re
import textwrap
import tempfile
from ..core.AriaXML import AriaXMLPickler
from ..core.ConversionTable import ConversionTable
from ..core.DataContainer import DATA_TYPES, DATA_SEQUENCE, DATA_RDCS, \
......@@ -1534,7 +1535,7 @@ class AriaEcXMLConverter(AriaXMLConverter):
templatepath = os.path.abspath(aria_template)
ariaproj_template = Template(filename=templatepath,
module_directory="/tmp/mako_modules")
module_directory=tempfile.mkdtemp())
try:
with open(templatepath):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment