Skip to content

Commit

Permalink
Move deps.py's basedir to the top, and fix it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zannick committed May 11, 2012
1 parent 6041918 commit 172ee70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/deps.py
Expand Up @@ -2,6 +2,8 @@
import re
import sys

basedir = os.path.join(os.path.dirname(__file__), '..', 'demystify', 'grammar')

rule = re.compile(r"^(?:[a-z_0-9]+\+?=)?([a-z_0-9]+)\+?\*?!?\??$")
comments = re.compile(r"//.*?$|/\*.*?\*/", re.M|re.S)
actions = re.compile(r"""{([^'"]|'[^']*'|"[^"]*"|'''.*?'''"""
Expand All @@ -28,8 +30,6 @@ def print_deps(deps):
for d in rdeps:
print(' "{}" -> "{}";'.format(rname, d))

basedir = os.path.join(os.path.dirname(__file__), 'grammar')

def print_graph(files):
print('digraph gdeps {\n truecolor=true;')
# filename -> list of deps
Expand Down

0 comments on commit 172ee70

Please sign in to comment.