-
-
Notifications
You must be signed in to change notification settings - Fork 252
Sym two #814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sym two #814
Changes from 1 commit
f4c0ed6
347707d
3f13a28
47ea5ee
6eff3b2
8e08f3a
2b96e8d
44f76f7
513f37d
01a6a4c
2edc977
62bed48
45ada74
9fafb2e
52cef9f
6983428
5928198
dbc1d4f
5f15d7d
8bd85e9
0a29731
cec627a
629bf1e
11369fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,8 @@ | |
|
|
||
| # The cached list of all known modules | ||
| modules = set() | ||
| #List of stored paths | ||
| paths = set() | ||
| fully_loaded = False | ||
|
|
||
|
|
||
|
|
@@ -192,11 +194,9 @@ def find_modules(path): | |
| continue | ||
| else: | ||
| if is_package: | ||
| pathGood = True | ||
| pathReal = os.path.realpath(pathname) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. small nit, but in this project (and most Python projects) we use |
||
| if len(pathReal) < len(pathname) and pathReal in pathname: | ||
| pathGood = False | ||
| if pathGood: | ||
| if not pathReal in paths: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in Python so instead, this should be |
||
| paths.add(pathReal) | ||
| for subname in find_modules(pathname): | ||
| if subname != "__init__": | ||
| yield "%s.%s" % (name, subname) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.