Michal Kotus
Michal Kotus

Reputation: 157

define path to SConstruct root

My folder structure is:

\gitclone\SConstruct
\gitclone\level1\level2\SConscript.3dn

Now in SConscript.3dn I am creating empty folder: e.Execute(Mkdir('#/testDir'))

How to define the file path to create the folder in \gitclone\ (where root SConstruct file is)? I was reading manual, but somehow I can not manage it.

Upvotes: 0

Views: 59

Answers (1)

Michal Kotus
Michal Kotus

Reputation: 157

I have found solution here, so my code is:

e['SCONS_ROOT'] = Dir('#')
e.Execute(Mkdir('${SCONS_ROOT.abspath}/win_b64/code/bin/testDir'))

Upvotes: 1

Related Questions