##// END OF EJS Templates
skip submodule check in package managers...
MinRK -
Show More
@@ -40,6 +40,12 b' def is_repo(d):'
40 """is d a git repo?"""
40 """is d a git repo?"""
41 return os.path.exists(pjoin(d, '.git'))
41 return os.path.exists(pjoin(d, '.git'))
42
42
43 def is_package():
44 """Is a package manager responsible for the static files path?"""
45 from IPython.utils.path import get_ipython_package_dir
46 from IPython.frontend.html.notebook import DEFAULT_STATIC_FILES_PATH
47 return not DEFAULT_STATIC_FILES_PATH.startswith(get_ipython_package_dir())
48
43 def check_submodule_status(root=None):
49 def check_submodule_status(root=None):
44 """check submodule status
50 """check submodule status
45
51
@@ -51,8 +57,12 b' def check_submodule_status(root=None):'
51 """
57 """
52
58
53 if hasattr(sys, "frozen"):
59 if hasattr(sys, "frozen"):
54 # frozen via py2exe or similar, don't bother
60 # frozen via py2exe or similar, don't bother
55 return 'clean'
61 return 'clean'
62
63 if is_package():
64 # package manager is responsible for static files, don't bother
65 return 'clean'
56
66
57 if not root:
67 if not root:
58 root = ipython_parent()
68 root = ipython_parent()
General Comments 0
You need to be logged in to leave comments. Login now