Download:
child 33:640477d35e0b
parent 31:b3bf8932a839
32:68e9ae59bce0
Anton Shestakov <av6@dwimlabs.net>, Fri, 17 Jun 2016 18:29:21 +0800
checker: use default directory for mkstemp (influenced by TMPDIR, TEMP or TMP)

1 файлов изменено, 1 вставок(+), 4 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
--- a/checker.py Fri Jun 17 13:39:38 2016 +0800
+++ b/checker.py Fri Jun 17 18:29:21 2016 +0800
@@ -11,9 +11,6 @@
import yaml
-rel = lambda *x: os.path.abspath(os.path.join(os.path.dirname(__file__), *x))
-
-
def run_ignore_1(fn, args):
try:
return fn(args)
@@ -53,7 +50,7 @@
ok = True
print('# C&O job started: {}'.format(now()))
- tmp = mkdtemp(prefix='candolint.', dir=rel('workdir'))
+ tmp = mkdtemp(prefix='candolint.')
os.chdir(tmp)
print('# C&O task: clone')