Skip to content

Commit

Permalink
Path append and path prepend.
Browse files Browse the repository at this point in the history
darcs-hash:20060611071450-de23e-db150547141ac888ec305a7eaeea00ce658144fb.gz
  • Loading branch information
pupeno committed Jun 11, 2006
1 parent f1c434e commit 1e5c31f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions erlang.py
Expand Up @@ -67,7 +67,13 @@ def erlangGenerator(source, target, env, for_signature):
# Start with the complier.
command = "$ERLC"

# The output (-o) parameter
if env.has_key("PATHPREPEND"):
command += " -pa " + env["PATHPREPEND"]

if env.has_key("PATHAPEND"):
command += " -pz " + env["PATHAPEND"]

# Where to put the output
command += " -o " + outputDir(source, env)

# Add the libpaths.
Expand All @@ -91,8 +97,8 @@ def erlangGenerator(source, target, env, for_signature):

def outputDir(source, env):
""" Given a source and its environment, return the output directory. """
if env.has_key("OUTPUT"):
return env["OUTPUT"]
if env.has_key("OUTPUTDIR"):
return env["OUTPUTDIR"]
else:
return dirOf(source)

Expand Down

0 comments on commit 1e5c31f

Please sign in to comment.