Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
iniself committed May 9, 2023
1 parent a5ccc13 commit b29b4d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions noba/service/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from __future__ import (absolute_import, division, print_function, unicode_literals)
import noba.snippet as snippet
from distutils.util import convert_path
from noba.ioc import Container

# p = snippet.here
Expand Down Expand Up @@ -50,16 +49,16 @@ def _check_absolute_path_else_return_relative_path(self, path):
return path

def _bind_paths_in_core(self, path=''):
self.instance('package.base.absolute.path', convert_path(self._package_absolute_path))
self.instance('package.config.absolute.path', convert_path(self._package_absolute_path.joinpath("config")))
self.instance('package.bootstrap.absolute.path', convert_path(self._package_absolute_path.joinpath("bootstrap")))
self.instance('package.provider.absolute.path', convert_path(self._package_absolute_path.joinpath("provider")))

self.instance('project.base.absolute.path', convert_path(self._project_absolute_path))
self.instance('project.config.absolute.path', convert_path(self._project_absolute_path.joinpath("config")))
self.instance('project.bootstrap.absolute.path', convert_path(self._project_absolute_path.joinpath("bootstrap")))
self.instance('project.provider.absolute.path', convert_path(self._project_absolute_path.joinpath("provider")))
self.instance('project.migrate.absolute.path', convert_path(self._project_absolute_path.joinpath("migrate")))
self.instance('package.base.absolute.path', self._package_absolute_path)
self.instance('package.config.absolute.path', self._package_absolute_path.joinpath("config"))
self.instance('package.bootstrap.absolute.path', self._package_absolute_path.joinpath("bootstrap"))
self.instance('package.provider.absolute.path', self._package_absolute_path.joinpath("provider"))

self.instance('project.base.absolute.path', self._project_absolute_path)
self.instance('project.config.absolute.path', self._project_absolute_path.joinpath("config"))
self.instance('project.bootstrap.absolute.path', self._project_absolute_path.joinpath("bootstrap"))
self.instance('project.provider.absolute.path', self._project_absolute_path.joinpath("provider"))
self.instance('project.migrate.absolute.path', self._project_absolute_path.joinpath("migrate"))

self.instance('package.config.module.path', "config")
self.instance('project.config.module.path', "config")
Expand Down
2 changes: 1 addition & 1 deletion noba/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.1'
__version__ = '1.1.2'

0 comments on commit b29b4d8

Please sign in to comment.