diff options
author | Hao Chen | 2020-03-17 15:15:20 -0500 |
---|---|---|
committer | Hao Chen | 2020-03-17 15:15:20 -0500 |
commit | a7e84e18bce88a1e40f25781a72365818a143ac4 (patch) | |
tree | 1874456d096d9a388c29da5c3a988f2786811acc | |
parent | 1b516ee692248f4cd75570d9750b14f78554b41f (diff) | |
download | genecup-a7e84e18bce88a1e40f25781a72365818a143ac4.tar.gz |
create userdir
-rwxr-xr-x | ratspub.py | 7 | ||||
-rwxr-xr-x | server.py | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -162,6 +162,12 @@ nj6=generate_nodes_json(psychiatric_d, 'GWAS') +pubmed_path=os.environ["EDIRECT_PUBMED_MASTER"] +if ( not pubmed_path): + pubmed_path="~/Dropbox/ChenLab/Hakan/RatsPub/PubMed" +pubmed_path +="/Archive" +''' +print (pubmed_path) host= os.popen('hostname').read().strip() if host=="x1": pubmed_path="/run/media/hao/PubMed/Archive/" @@ -171,3 +177,4 @@ elif host=="penguin2": pubmed_path="/export2/PubMed/Archive" elif host=="hchen": pubmed_path="~/Dropbox/ChenLab/Hakan/RatsPub/PubMed/Archive" +''' @@ -19,6 +19,7 @@ app=Flask(__name__) app.config['SECRET_KEY'] = '#DtfrL98G5t1dC*4' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///userspub.sqlite' db = SQLAlchemy(app) +datadir="/export/ratspub/" # the sqlite database class users(db.Model): |