On Monday, July 9, 2012 10:52:59 PM UTC+2, peter.bittner wrote: > > Hi Daniel, > > > You can try it with, e.g., the employeeadmin example: > > $ cd ./pyjs/examples/employeeadmin > $ python . --help > Usage: . [options] > > Options: > -h, --help show this help message and exit > --download permit downloads of files or libraries > --misc build miscellaneous examples > --deprecated build deprecated examples > > $ python . --download > WARNING:root:[--library_dir] is deprecated, see [-I, --search-path] > Building: EmployeeAdmin > ... >
Hi Peter, I see. So download.sh is not used, and instead __main__.py is the right place to code this, correct? I have added a __main__.py, but I have an open question: while downloading, I find the natural place to put the downloaded files to be the output directory, for two reasons: because that is the final destination, and because the output directory is "gitignored", which keeps the repo clean even after downloading these third party dependencies. But when the download is performed, the output directory is not present, so it fails with: IOError: [Errno 2] No such file or directory: '.../pyjs/examples/jquery-select2/output/jquery.min.js' Do you have a suggestion? I see that the canvasprocessing example is downloading to canvasprocessing/processing.js, but this marks the repo as dirty, which is not very nice (I mean, making a repo dirty just by building the examples is unexpected). The current status: https://github.com/gonvaled/pyjs/tree/master/examples/jquery-select2 BR, Daniel