Skip to content
Snippets Groups Projects
Commit 7cfcd972 authored by Alistair McLean's avatar Alistair McLean
Browse files

Changed getuid to be windows compatible, user getpass instead

parent 277c32b0
No related branches found
No related tags found
No related merge requests found
......@@ -292,8 +292,9 @@ def _create_built_program_from_source_cached(ctx, src, options, devices, cache_d
if cache_dir is None:
from os.path import join
from tempfile import gettempdir
import getpass
cache_dir = join(gettempdir(),
"pyopencl-compiler-cache-v1-uid%s" % os.getuid())
"pyopencl-compiler-cache-v1-uid%s" % getpass.getuser())
# {{{ ensure cache directory exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment