Skip to content

Commit

Permalink
Fixed scripts to run with python3
Browse files Browse the repository at this point in the history
  • Loading branch information
zagganas committed Jan 31, 2021
1 parent 7962402 commit a65ba94
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scheduler_files/cwlReadInputs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import psycopg2 as psg
import sys
import yaml
Expand Down
4 changes: 2 additions & 2 deletions scheduler_files/imageRemover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/python3
import sys
import subprocess
import psycopg2 as psg
Expand Down Expand Up @@ -35,7 +35,7 @@
sql="SELECT image FROM software WHERE name='" + imageName + "' AND version='" + imageVersion + "'"
cur.execute(sql)
results=cur.fetchone()

print(results)
fullImage=results[0]

sql="SELECT COUNT(*) FROM software WHERE image='" + fullImage + "'"
Expand Down
2 changes: 1 addition & 1 deletion scheduler_files/imageUploader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
import uploadFunctions as uf
import sys
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion scheduler_files/inputReplacer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import psycopg2 as psg
import sys
import yaml
Expand Down
2 changes: 1 addition & 1 deletion scheduler_files/mpiMonitorAndClean.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
import sys
import subprocess
import psycopg2 as psg
Expand Down
2 changes: 1 addition & 1 deletion scheduler_files/remoteJobMonitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/python3
import requests
import sys
import os
Expand Down

0 comments on commit a65ba94

Please sign in to comment.