Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 31c03f3

Browse files
ahartikainenriddell-stan
authored andcommitted
Use prefix 'pystan_' with tempfolder (#628)
1 parent 465d73d commit 31c03f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystan/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def __init__(self, file=None, charset='utf-8', model_name="anon_model",
271271
# module_name needs to be unique so that each model instance has its own module
272272
nonce = abs(hash((self.model_name, time.time())))
273273
self.module_name = 'stanfit4{}_{}'.format(self.model_name, nonce)
274-
lib_dir = tempfile.mkdtemp()
274+
lib_dir = tempfile.mkdtemp(prefix='pystan_')
275275
pystan_dir = os.path.dirname(__file__)
276276
if include_dirs is None:
277277
include_dirs = []

0 commit comments

Comments
 (0)