Skip to content

Commit

Permalink
set OpenRefine dir relative to /home/felix (by @psychemedia)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixlohmeier committed Jul 25, 2019
1 parent 91fec22 commit e357875
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nbopenrefineproxy/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
from notebook.utils import url_path_join as ujoin

from nbserverproxy.handlers import SuperviseAndProxyHandler

import os

class OpenRefineProxyHandler(SuperviseAndProxyHandler):
name = 'OpenRefine'

def get_cmd(self):
path = os.path.join(os.environ['HOME'], 'openrefine')
os.makedirs(path, exist_ok=True)
cmd = ['openrefine-3.1/refine',
'-p', str(self.port)
'-p', str(self.port),
'-d',path
]
return cmd

Expand Down

1 comment on commit e357875

@felixlohmeier
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the commit message should have been "set OpenRefine dir relative to $HOME (by @psychemedia)"

Please sign in to comment.