Remove import path hard-coding. Will have to deal with in a Pythonic way and some package somewhere.

This commit is contained in:
R. Bernstein
2008-11-28 13:56:44 -05:00
parent f191edc157
commit 987e4a48ba
11 changed files with 3 additions and 41 deletions

View File

@@ -1,9 +1,11 @@
# Compatibility for us old-timers. # Compatibility for us old-timers.
PHONY=check test dist PHONY=check clean dist test
all: check all: check
dist: dist:
python ./setup.py sdist bdist python ./setup.py sdist bdist
check: check:
nosetests nosetests
clean:
python ./setup.py $@
test: check test: check
.PHONY: $(PHONY) .PHONY: $(PHONY)

View File

@@ -21,10 +21,6 @@ libcdio distribution for a more complete program.
import sys, os import sys, os
from optparse import OptionParser from optparse import OptionParser
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import cdio import cdio

View File

@@ -21,10 +21,6 @@ for a more complete program.
import sys, os import sys, os
from optparse import OptionParser from optparse import OptionParser
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import cdio import cdio

View File

@@ -18,10 +18,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
import sys, time import sys, time
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import cdio import cdio
from time import sleep from time import sleep

View File

@@ -17,10 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, sys import os, sys
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import cdio import cdio

View File

@@ -23,10 +23,6 @@ for a more complete program."""
# #
import os, sys import os, sys
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import cdio import cdio

View File

@@ -17,10 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, sys import os, sys
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import cdio import cdio

View File

@@ -23,10 +23,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, sys import os, sys
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import iso9660 import iso9660
# The default ISO 9660 image if none given # The default ISO 9660 image if none given

View File

@@ -23,10 +23,6 @@ show using iso9660 to extract a file from an ISO-9660 image."""
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, sys import os, sys
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import iso9660 import iso9660

View File

@@ -21,10 +21,6 @@ used."""
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, sys import os, sys
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import iso9660 import iso9660

View File

@@ -17,10 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, sys import os, sys
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio import pycdio
import cdio import cdio