aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2016-06-18 06:29:21 +0000
committerPjotr Prins2016-06-18 06:29:21 +0000
commitf62c8ec7fa92f164b345b853c839afe6a72708b3 (patch)
tree5050973da1ed536608232593175f609758845e0f
parent540926af239735854084ec1cfe06a3bd4fed8977 (diff)
downloadgenenetwork2-f62c8ec7fa92f164b345b853c839afe6a72708b3.tar.gz
Disable setting sys.paths
-rwxr-xr-xwqflask/maintenance/generate_probesetfreeze_file.py2
-rw-r--r--wqflask/utility/Plot.py3
-rwxr-xr-xwqflask/wqflask/__init__.py2
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py2
-rwxr-xr-xwqflask/wqflask/do_search.py2
-rw-r--r--wqflask/wqflask/heatmap/heatmap.py2
-rw-r--r--wqflask/wqflask/views.py2
7 files changed, 5 insertions, 10 deletions
diff --git a/wqflask/maintenance/generate_probesetfreeze_file.py b/wqflask/maintenance/generate_probesetfreeze_file.py
index 84319a21..b7b2dc8e 100755
--- a/wqflask/maintenance/generate_probesetfreeze_file.py
+++ b/wqflask/maintenance/generate_probesetfreeze_file.py
@@ -4,7 +4,7 @@ from __future__ import absolute_import, print_function, division
import sys
-sys.path.insert(0, "..")
+# sys.path.insert(0, "..") - why?
import os
import collections
diff --git a/wqflask/utility/Plot.py b/wqflask/utility/Plot.py
index 063de387..4752de57 100644
--- a/wqflask/utility/Plot.py
+++ b/wqflask/utility/Plot.py
@@ -38,8 +38,7 @@ from numarray import linear_algebra as la
from numarray import ones, array, dot, swapaxes
import reaper
-sys.path.append("..")
-print(sys.path)
+# sys.path.append("..") Never in a running webserver
from basicStatistics import corestats
import svg
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py
index 478d0a71..a26de39b 100755
--- a/wqflask/wqflask/__init__.py
+++ b/wqflask/wqflask/__init__.py
@@ -1,8 +1,6 @@
from __future__ import absolute_import, division, print_function
import sys
-print("sys.path is:", sys.path)
-
import jinja2
from flask import Flask
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index f2bba985..7738cbed 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -21,7 +21,7 @@
from __future__ import absolute_import, print_function, division
import sys
-sys.path.append(".")
+# sys.path.append(".") Never in a running webserver
import gc
import string
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index d89facfe..04fd0688 100755
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -11,7 +11,7 @@ from MySQLdb import escape_string as escape
from pprint import pformat as pf
import sys
-sys.path.append("..")
+# sys.path.append("..") Never in a running webserver
from dbFunction import webqtlDatabaseFunction
diff --git a/wqflask/wqflask/heatmap/heatmap.py b/wqflask/wqflask/heatmap/heatmap.py
index c766d677..56ff11cd 100644
--- a/wqflask/wqflask/heatmap/heatmap.py
+++ b/wqflask/wqflask/heatmap/heatmap.py
@@ -1,7 +1,7 @@
from __future__ import absolute_import, print_function, division
import sys
-sys.path.append(".")
+# sys.path.append(".") Never in a running webserver
import gc
import string
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index ba250d4f..06db7494 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -2,8 +2,6 @@
from __future__ import absolute_import, division, print_function
import sys
-print("sys.path is:", sys.path)
-
import csv
import xlsxwriter
import StringIO # Todo: Use cStringIO?