Skip to content

Commit

Permalink
#5859 PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbidas committed Sep 19, 2017
1 parent d108750 commit b4168ce
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions beakerx/beakerx/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,13 @@ def _all_kernels():
'beakerx', os.path.join('static', 'kernel'))
return [kernel for kernel in kernels if kernel != 'base']

def convert_path(path):
if sys.platform == 'win32':
return path.replace('\\', '/')
return path

def _base_classpath_for(kernel):
return pkg_resources.resource_filename(
'beakerx', os.path.join('static', 'kernel', kernel))

def _classpath_for(kernel):
return convert_path(pkg_resources.resource_filename(
'beakerx', os.path.join('static', 'kernel', kernel, 'lib', '*')))
return pkg_resources.resource_filename(
'beakerx', os.path.join('static', 'kernel', kernel, 'lib', '*'))


def _install_nbextension():
Expand Down

0 comments on commit b4168ce

Please sign in to comment.