equal
deleted
inserted
replaced
1523 depth_count = module_fullname.count('.') |
1523 depth_count = module_fullname.count('.') |
1524 if cgi_path.endswith('__init__.py') or not cgi_path.endswith('.py'): |
1524 if cgi_path.endswith('__init__.py') or not cgi_path.endswith('.py'): |
1525 depth_count += 1 |
1525 depth_count += 1 |
1526 |
1526 |
1527 for index in xrange(depth_count): |
1527 for index in xrange(depth_count): |
1528 current_init_file = os.path.join(module_base, '__init__.py') |
1528 current_init_file = os.path.abspath( |
|
1529 os.path.join(module_base, '__init__.py')) |
1529 |
1530 |
1530 if not isfile(current_init_file): |
1531 if not isfile(current_init_file): |
1531 missing_init_files.append(current_init_file) |
1532 missing_init_files.append(current_init_file) |
1532 |
1533 |
1533 module_base = os.path.abspath(os.path.join(module_base, os.pardir)) |
1534 module_base = os.path.abspath(os.path.join(module_base, os.pardir)) |
1917 """ |
1918 """ |
1918 if path.startswith(PYTHON_LIB_VAR): |
1919 if path.startswith(PYTHON_LIB_VAR): |
1919 path = os.path.join(os.path.dirname(os.path.dirname(google.__file__)), |
1920 path = os.path.join(os.path.dirname(os.path.dirname(google.__file__)), |
1920 path[len(PYTHON_LIB_VAR) + 1:]) |
1921 path[len(PYTHON_LIB_VAR) + 1:]) |
1921 else: |
1922 else: |
1922 path = os.path.join(self._root_path, path) |
1923 if os.path.sep == '\\': |
|
1924 root = self._root_path.replace('\\', '\\\\') |
|
1925 if root.endswith('\\'): |
|
1926 path = root + path |
|
1927 else: |
|
1928 path = root + '\\\\' + path |
|
1929 else: |
|
1930 path = os.path.join(self._root_path, path) |
1923 |
1931 |
1924 return path |
1932 return path |
1925 |
1933 |
1926 |
1934 |
1927 class StaticFileConfigMatcher(object): |
1935 class StaticFileConfigMatcher(object): |