Browse Source

don't hardcode tmp dir location

master
Corey Goldberg 6 years ago
parent
commit
c9264d6911
  1. 3
      xvfbwrapper.py

3
xvfbwrapper.py

@ -12,6 +12,7 @@ import os
import fnmatch
import random
import subprocess
import tempfile
import time
@ -85,7 +86,7 @@ class Xvfb:
return display_num
def _lock_files(self):
tmpdir = '/tmp'
tmpdir = tempfile.gettempdir()
pattern = '.X*-lock'
names = fnmatch.filter(os.listdir(tmpdir), pattern)
ls = [os.path.join(tmpdir, child) for child in names]

Loading…
Cancel
Save