Skip to content

Commit

Permalink
custom treatment of the commonBeam models generator folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kbat committed Dec 12, 2024
1 parent a5b6a22 commit 1a800ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mctools/common/CombLayer/paster/cl-add-variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,12 @@ def main():
h = os.path.join(hDir, args.className + ".h")

if args.generator == "":
cxxGenDir = os.path.join('',*cxxDir.split('/')[:-1], "commonGenerator")
if not checkPaths([cxxGenDir],()):
cxxGenDir = cxxDir+"Var"
if args.model == "Model/MaxIV/commonBeam":
cxxGenDir = "Model/MaxIV/commonGenerator"
else:
cxxGenDir = os.path.join('',*cxxDir.split('/')[:-1], "commonGenerator")
if not checkPaths([cxxGenDir],()):
cxxGenDir = cxxDir+"Var"

hGenDir = cxxGenDir + 'Inc'
prefix = args.className
Expand Down

0 comments on commit 1a800ea

Please sign in to comment.