Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #117 from zmwangx/master

Introduce environment variable GRIPHOME for greater customizability of instance_path
  • Loading branch information...
commit bf91ec217ad28d8db8cb23720cd0838e07df55a7 2 parents 093f908 + abf3816
@joeyespo authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 grip/server.py
View
5 grip/server.py
@@ -204,7 +204,10 @@ def resolve_readme(path=None, force=False):
def _create_flask():
- instance_path = os.path.abspath(os.path.expanduser('~/.grip'))
+ if 'GRIPHOME' in os.environ:
+ instance_path = os.environ['GRIPHOME']
+ else:
+ instance_path = os.path.abspath(os.path.expanduser('~/.grip'))
user_settings = os.path.join(instance_path, 'settings.py')
default_static_url_path = '/grip-static'
Please sign in to comment.
Something went wrong with that request. Please try again.