Initial changes for Pungi 4.0.

This commit is contained in:
Daniel Mach 2015-02-05 10:56:24 -05:00
parent 274236a3f3
commit f5c6d44000
19 changed files with 90 additions and 198 deletions

View file

@ -8,9 +8,13 @@ import os
import sys
import tempfile
import shutil
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src", "pypungi")))
from arch import *
here = sys.path[0]
if here != '/usr/bin':
# Git checkout
sys.path[0] = os.path.dirname(here)
from pungi.arch import *
class TestArch(unittest.TestCase):

View file

@ -5,9 +5,13 @@
import unittest
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src", "pypungi")))
from pathmatch import PathMatch, head_tail_split
here = sys.path[0]
if here != '/usr/bin':
# Git checkout
sys.path[0] = os.path.dirname(here)
from pungi.pathmatch import PathMatch, head_tail_split
class TestHeadTailSplit(unittest.TestCase):