Skip to content

Commit

Permalink
Fixed the root path check in the cyclic_dependency.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
zuyu committed Oct 3, 2017
1 parent 7fb7a77 commit 0898a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cyclic_dependency.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Script to do analyze the dependencies in Quickstep particularly cycles in the
# dependency graph. This script can be used to find:
Expand Down Expand Up @@ -169,7 +169,7 @@ def find_path(G, nodes_list, nodes_map, source, target):
print('No path.')

def main():
if not os.getcwd().endswith("quickstep"):
if not os.path.isfile("cyclic_dependency.py"):
print("WARNING: you don't appear to be running in the root quickstep "
"source directory. Don't blame me if something goes wrong.")
qs_module_dirs = []
Expand Down

0 comments on commit 0898a77

Please sign in to comment.