Show More
@@ -40,6 +40,12 b' def is_repo(d):' | |||
|
40 | 40 | """is d a git repo?""" |
|
41 | 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 | 49 | def check_submodule_status(root=None): |
|
44 | 50 | """check submodule status |
|
45 | 51 | |
@@ -54,6 +60,10 b' def check_submodule_status(root=None):' | |||
|
54 | 60 | # frozen via py2exe or similar, don't bother |
|
55 | 61 | return 'clean' |
|
56 | 62 | |
|
63 | if is_package(): | |
|
64 | # package manager is responsible for static files, don't bother | |
|
65 | return 'clean' | |
|
66 | ||
|
57 | 67 | if not root: |
|
58 | 68 | root = ipython_parent() |
|
59 | 69 |
General Comments 0
You need to be logged in to leave comments.
Login now