Skip to content

Commit

Permalink
move chmod call to runFremake instead of checkout.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored and rem1776 committed Nov 4, 2024
1 parent aaee602 commit ee4b5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions fre/make/gfdlfremake/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ def finish (self,pc):
## TODO: batch script building
def run (self):
"""
Brief: Changes the permission on the checkout script and runs it
Brief: Runs the checkout script
Param:
- self The checkout script object
"""
os.chmod(self.src+"/"+self.fname, 0o744)
try:
subprocess.run(args=[self.src+"/"+self.fname], check=True)
except:
Expand Down
1 change: 1 addition & 0 deletions fre/make/runFremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,verb
freCheckout = checkout.checkout("checkout.sh",srcDir)
freCheckout.writeCheckout(modelYaml.compile.getCompileYaml(),jobs,pc)
freCheckout.finish(pc)
os.chmod(srcDir+"/checkout.sh", 0o744)
## TODO: Options for running on login cluster?
freCheckout.run()

Expand Down

0 comments on commit ee4b5b5

Please sign in to comment.