0
ich installiert NodeJS und hoffe bin-Verzeichnis für scons hinzuzufügen:env.PrependENVPath/AppendENVPath doesnt Arbeit wie erwartet:
import os
env=Environment()
env.PrependENVPath('PATH','/home/my/node/bin')
print "PATH is", env.subst('$PATH')
Lauf scons, druckt es:
PATH ist Nun nein Wert wird gedruckt. Warum das?
Mögliche Duplikat [Wie kann ich einen Cross-Compiler mit Scons verwenden?] (Http: //stackoverflow.com/questions/23898584/how-can-i-use-a-cross-compiler-with-scons) –
Hinweis: 'env ['PATH']! = env ['ENV'] ['PATH' ] ' –