source: orange/install-scripts/addon-pack/prepare-and-pack.py @ 9093:9692d1aad3fa

Revision 9093:9692d1aad3fa, 581 bytes checked in by matija <matija.polajnar@…>, 3 years ago (diff)

Adapt add-on packaging VM to sshfs and avoid automatically running packaging routines at startup; the vmware-dailyrun script will take care of that.

  • Property exe set to *
Line 
1#!/usr/bin/python
2
3import sys
4sys.path += ["/root/orange"]
5
6import Orange.misc.addons
7rao = Orange.misc.addons.OrangeRegisteredAddOn(None, sys.argv[1])
8rao.prepare(None, None, None, None, None, None, None, None, None, None)
9
10import zipfile, os
11oao = zipfile.ZipFile(sys.argv[2], 'w')
12dirs = os.walk(".")
13for (dir, subdirs, files) in dirs:
14    for file in files:
15        fileRelPath = os.path.join(dir, file)
16        if fileRelPath.startswith("source/") or fileRelPath.startswith(".svn/") or "/.svn/" in fileRelPath:
17            continue
18        oao.write(fileRelPath, fileRelPath)
Note: See TracBrowser for help on using the repository browser.