gstepanov | 725cc30 | 2015-02-09 15:08:06 +0200 | [diff] [blame] | 1 | import os |
| 2 | |
stgleb | 75c7041 | 2015-02-17 02:52:00 +0200 | [diff] [blame^] | 3 | basedir = os.environ.get('DATABASE_FOLDER', os.path.abspath(os.path.dirname(__file__))) |
gstepanov | 5efd15a | 2015-01-29 17:26:24 +0200 | [diff] [blame] | 4 | DOCUMENT_ID = "1Xvd0aHA7mr-_b5C3b-sQ66BQsJiOGIT2UesP7kG26oU" |
gstepanov | 31bb8e4 | 2015-01-30 18:00:42 +0200 | [diff] [blame] | 5 | SHEET_NAME = "aaa" |
gstepanov | 5efd15a | 2015-01-29 17:26:24 +0200 | [diff] [blame] | 6 | WORK_SHEET = "Worksheet" |
| 7 | COL_COUNT = 2 |
gstepanov | 31bb8e4 | 2015-01-30 18:00:42 +0200 | [diff] [blame] | 8 | ROW_COUNT = 10 |
gstepanov | e0f26ab | 2015-02-02 18:09:37 +0200 | [diff] [blame] | 9 | DEFAULT_FILE_PATH = "test.json" |
| 10 | OUTPUT_FILE = "output.json" |
gstepanov | 725cc30 | 2015-02-09 15:08:06 +0200 | [diff] [blame] | 11 | TEST_PATH = os.environ.get("TEST_PATH", os.path.dirname(__file__) + "/test_results") |
gstepanov | 6ce6bf0 | 2015-02-16 19:04:14 +0200 | [diff] [blame] | 12 | CHARTS_IMG_PATH = "static/images" |
stgleb | 75c7041 | 2015-02-17 02:52:00 +0200 | [diff] [blame^] | 13 | SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') |
| 14 | |
| 15 | if os.environ.get('DATABASE_URL') is None: |
| 16 | DATABASE_URI = ('sqlite:///' + os.path.join(basedir, 'app.db') + |
| 17 | '?check_same_thread=False') |
| 18 | else: |
| 19 | DATABASE_URI = os.environ['DATABASE_URL'] |