Skip to content

Commit 36399e1

Browse files
committed
Use python3 chmod codes
1 parent 9f7bc03 commit 36399e1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

atlasing/anatomical/animaBuildAnatomicalAtlas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
myfile.write("\n")
106106

107107
myfile.close()
108-
os.chmod(fileName, 0755)
108+
os.chmod(fileName, stat.S_IRWXU)
109109

110110
oarRunCommand = ["oarsub"]
111111
if previousMergeId == 0:
@@ -139,7 +139,7 @@
139139
myfile.write("\n")
140140

141141
myfile.close()
142-
os.chmod(fileName, 0755)
142+
os.chmod(fileName, stat.S_IRWXU)
143143

144144
oarRunCommand = ["oarsub","-n","merge-" + str(k),"-S",os.getcwd() + "/mergeRun_" + str(k)]
145145

atlasing/anatomical_iterative_centroid/animaBuildAnatomicalICAtlas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
myfile.write("\n")
8888

8989
myfile.close()
90-
os.chmod(fileName, 0755)
90+
os.chmod(fileName, stat.S_IRWXU)
9191

9292
oarRunCommand = ["oarsub"]
9393
if previousMergeId == 0:
@@ -121,7 +121,7 @@
121121
" -a $OAR_ARRAY_INDEX \n")
122122

123123
myfile.close()
124-
os.chmod(fileName, 0755)
124+
os.chmod(fileName, stat.S_IRWXU)
125125

126126
oarRunCommand = ["oarsub","-n","bch-" + str(k),"-S",os.getcwd() + "/bchRun_" + str(k), "-a", str(previousRegId)]
127127

@@ -147,7 +147,7 @@
147147
" -c " + str(args.num_cores) + "\n")
148148

149149
myfile.close()
150-
os.chmod(fileName, 0755)
150+
os.chmod(fileName, stat.S_IRWXU)
151151

152152
oarRunCommand = ["oarsub"]
153153
for jobId in jobsIds:

atlasing/dti/animaBuildDTIAtlas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
myfile.write("\n")
106106

107107
myfile.close()
108-
os.chmod(fileName, 0755)
108+
os.chmod(fileName, stat.S_IRWXU)
109109

110110
oarRunCommand = ["oarsub"]
111111
if previousMergeId == 0:
@@ -139,7 +139,7 @@
139139
myfile.write("\n")
140140

141141
myfile.close()
142-
os.chmod(fileName, 0755)
142+
os.chmod(fileName, stat.S_IRWXU)
143143

144144
oarRunCommand = ["oarsub","-n","merge-" + str(k),"-S",os.getcwd() + "/mergeRun_" + str(k)]
145145

0 commit comments

Comments
 (0)