Skip to content

Commit

Permalink
modify shebang to use python 3 on various cronjobs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesnard committed Jan 16, 2020
1 parent 456f949 commit a704187
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions AATAMS/AATAMS_sattag_nrt/dest_path.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Returns the relative path of a AATAMS NRT NetCDF file
author Laurent Besnard, [email protected]
Expand Down Expand Up @@ -28,6 +28,7 @@ def create_file_hierarchy(netcdf_file_path):

return relative_netcdf_path


if __name__ == '__main__':
# read filename from command line
if len(sys.argv) < 2:
Expand All @@ -39,5 +40,5 @@ def create_file_hierarchy(netcdf_file_path):
if not destination_path:
exit(1)

print destination_path
print(destination_path)
exit(0)
2 changes: 1 addition & 1 deletion ANMN/NRS_AIMS/REALTIME/anmn_nrs_aims.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Download ANMN NRS data from AIMS Web Service for Darwin, Yongala and Beagle
Expand Down
2 changes: 1 addition & 1 deletion AUV/auv_viewer_processing/auv_processing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*
"""
TODO
Expand Down
2 changes: 1 addition & 1 deletion FAIMMS/REALTIME/faimms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Download FAIMMS data from AIMS Web Service
Expand Down
2 changes: 1 addition & 1 deletion SOOP/SOOP_ASF_SST_XBT/SOOP_BOM_ASF_SST.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import argparse
Expand Down
3 changes: 2 additions & 1 deletion SOOP/SOOP_ASF_SST_XBT/SOOP_XBT_NRT.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Download SBD files from CSIRO FTP and convert to CSV
The CSV files are then pushed to the INCOMING_DIR
Expand Down Expand Up @@ -84,6 +84,7 @@ def main(force_reprocess_all=False):
lftp.close()
logging.logging_stop()


def parse_arg():
"""
create optional script arg -f to to force the reprocess of all SBD files
Expand Down
2 changes: 1 addition & 1 deletion SOOP/SOOP_ASF_SST_XBT/soop_sst_ls_duplicates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" simple script to list all soop sst nrt files to be deleted as they are many
duplicates on S3 and the DB. Files with the latest creation date will be kept.
Expand Down
2 changes: 1 addition & 1 deletion SOOP/SOOP_TRV/soop_trv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Download SOOP TRV data from AIMS Web Service
The script reads an XML file provided by AIMS. The script then looks at which
Expand Down
2 changes: 1 addition & 1 deletion SRS/SRS_OC_LJCO_AERONET/download_aeronet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 7 11:45:44 2014
Expand Down
2 changes: 1 addition & 1 deletion bin/geonetwork_broken_link_checker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import os
Expand Down

0 comments on commit a704187

Please sign in to comment.