Skip to content

Commit

Permalink
Update shebangs to use env python2
Browse files Browse the repository at this point in the history
Update shebangs to use the environment's python2, instead of the system
python. This wil make it easier to run in virtualenvs and on systems
where /usr/bin/python is not python2.
  • Loading branch information
Hwesta committed Jun 24, 2015
1 parent 56de8c0 commit e535c7d
Show file tree
Hide file tree
Showing 142 changed files with 143 additions and 143 deletions.
2 changes: 1 addition & 1 deletion localDevSetup/installDependsFromDebianFile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion localDevSetup/removeUnitsFromWatchedDirectories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/archivematicaClient.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
# This file is part of Archivematica.
#
# Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com>
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/archivematicaClamscan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/archivematicaCreateMETS.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
#
# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# This file is part of Archivematica.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
#
# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
#
# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
#
# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
#
# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

from __future__ import print_function
import os
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/archivematicaFITS.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
import sys
import os
# archivematicaCommon
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/archivematicaMoveSIP.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2

from __future__ import print_function
import os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2

from __future__ import print_function
from argparse import ArgumentParser
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

dcNS="http://purl.org/dc/elements/1.1/"
dctermsNS = "http://purl.org/dc/terms/"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/characterizeFile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2
#
# Collects characterization commands for the provided file, then either
# a) Inserts the tool's XML output into the database, or
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/checkForAccessDirectory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/compressAIP.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2

import argparse
import os.path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/createAICMETS.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python2 -OO
#! /usr/bin/env python2

import argparse
from lxml import etree
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/createEvent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/createEventsForGroup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/createPointerFile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2 -OO
#!/usr/bin/env python2

import argparse
from lxml import etree
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/emailFailReport.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/examineContents.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2
import os
import subprocess
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/extractBagTransfer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/extractContents.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2

from __future__ import print_function
import os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/failedSIPCleanup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2 -OO
#!/usr/bin/env python2

import argparse
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/getAipStorageLocations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2 -OO
#!/usr/bin/env python2

import logging
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/identifyDspaceFiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/identifyDspaceMETSFiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/identifyFileFormat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2

import argparse
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/indexAIP.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2 -OO
#!/usr/bin/env python2

from __future__ import print_function
import ConfigParser
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/isMaildirAIP.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/jsonMetadataToCSV.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

import csv
import json
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/loadDublinCore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2

import json
import os
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/loadLabelsFromCSV.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2
"""
Associate manually normalized preservation files with their originals.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

# This file is part of Archivematica.
#
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/moveOrMerge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/moveToBacklog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -OO
#!/usr/bin/env python2

import logging
import os
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/normalize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2 -OO
#!/usr/bin/env python2
from __future__ import print_function
import argparse
import ConfigParser
Expand Down
2 changes: 1 addition & 1 deletion src/MCPClient/lib/clientScripts/post_store_aip_hook.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2 -OO
#!/usr/bin/env python2

import argparse
import sys
Expand Down
Loading

0 comments on commit e535c7d

Please sign in to comment.