diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-02-08 20:41:13 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-02-08 20:41:13 +0200 |
commit | c5b3d913a3cbadbef0f378968db7711d82920295 (patch) | |
tree | 505e1c7d4b2ac3082d2964e390cf733722590f8b /builder_install.py | |
parent | 3deb31ebd59ededae60100cac768ce8f3e3504fc (diff) | |
download | meson-c5b3d913a3cbadbef0f378968db7711d82920295.zip meson-c5b3d913a3cbadbef0f378968db7711d82920295.tar.gz meson-c5b3d913a3cbadbef0f378968db7711d82920295.tar.bz2 |
Can pickle and load install data object.
Diffstat (limited to 'builder_install.py')
-rwxr-xr-x | builder_install.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/builder_install.py b/builder_install.py index 79e046d..a31c133 100755 --- a/builder_install.py +++ b/builder_install.py @@ -14,10 +14,21 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys +import sys, pickle + +class InstallData(): + def __init__(self, src_dir, build_dir): + self.src_dir = src_dir + self.build_dir = build_dir + +def do_install(datafilename): + ifile = open(datafilename, 'rb') + d = pickle.load(ifile) if __name__ == '__main__': if len(sys.argv) != 2: print('Installer script for Builder. Do not run on your own, mmm\'kay?') print('%s [install info file]' % sys.argv[0]) - datafile = sys.argv[1] + datafilename = sys.argv[1] + do_install(datafilename) + |