from pkgpanda import constants


DCOS_ROOT = constants.install_root
DCOS_CONFIG_DIR = constants.config_dir
DCOS_REPO_DIR = constants.repository_base
DCOS_ROOTED_SYSTEMD = False

WORK_DIR = '/tmp/pkgpanda_api'

@@ -1,8 +1,35 @@
+import os%0Aimport tempfile%0A%0A
 from pkg
@@ -213,14 +213,45 @@
 R = 
-'/tmp/
+os.path.join(tempfile.gettempdir(), '
 pkgp
@@ -259,9 +259,10 @@
 nda_api'
+)
 %0A

Use tempfile.tempdir in http.config instead of hardcoding to /tmp.