Lines Matching full:path
13 import os.path
30 def archive_name( path ):
31 path = os.path.normpath( os.path.abspath( path ) )
32 common_path = os.path.commonprefix( (base_dir, path) )
33 archive_name = path[len(common_path):]
38 path = os.path.join(dirname, name)
39 if os.path.isfile(path):
40 tar.add(path, archive_name(path) )
42 base_dir = os.path.normpath( env.get('TARGZ_BASEDIR', env.Dir('.')).abspath )
45 tar = tarfile.TarFile(os.path.splitext(target_path)[0], 'w', fileobj)
49 os.path.walk(source_path, visit, tar)