Skip to content

Commit

Permalink
temporary fix for #63
Browse files Browse the repository at this point in the history
  • Loading branch information
psathyrella committed Mar 16, 2020
1 parent 7b005c8 commit 4dbf9fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ if not options["build_partis_linearham"]:
if not any(options[a] for a in all_actions) and '--help' not in sys.argv:
raise Exception('No action specified. Choose from %s' % ', '.join('--' + a.replace('_', '-') for a in all_actions))

lhdir = os.getcwd() # os.path.dirname(os.path.realpath(__file__)) # would like to do it this way, but __file__ isn't set for scripts, only modules
if os.path.realpath(options["outdir"]).find(lhdir) != 0:
raise Exception("in order to avoid scons getting confused and not doing anything, --outdir has to be a subdir of the main linearham dir (%s), but it was set to %s" % (lhdir, os.path.realpath(options["outdir"])))

#### Set up the nesting structure

nest = nestly_scons.SConsWrap(nestly.Nest(), dest_dir=options["outdir"], alias_environment=env)
Expand Down

0 comments on commit 4dbf9fa

Please sign in to comment.