diff --git a/utils/ls8tools.py b/utils/ls8tools.py index 883ade6..03d1b14 100644 --- a/utils/ls8tools.py +++ b/utils/ls8tools.py @@ -138,10 +138,10 @@ def pansharpen(ms_dss, pan_ds, outname=None): if os.path.exists(outname): return gdal.Open(outname) -    if 'win' in sys.platform: -        command = ['python', os.path.join(os.path.dirname(sys.path[1]), 'Scripts', 'gdal_pansharpen.py'), pan_file] -    else: -        command = ['gdal_pansharpen.py', pan_file] + if 'win' in sys.platform: + command = ['python', os.path.join(os.path.dirname(sys.path[1]), 'Scripts', 'gdal_pansharpen.py'), pan_file] + else: + command = ['gdal_pansharpen.py', pan_file] for ds in ms_dss: ms_file = get_band_filename(ds.GetFileList())