chiark / gitweb /
Add back the ultimaker platform, and made the platform mesh simpler.
[cura.git] / Cura / slice / cura_sf / skeinforge_application / skeinforge_plugins / meta_plugins / polyfile.py
1 """
2 This page is in the table of contents.
3 Polyfile is a script to choose whether the skeinforge toolchain will operate on one file or all the files in a directory.
4
5 ==Settings==
6 ===Polyfile Choice===
7 Default is 'Execute File',
8
9 ====Execute File====
10 When selected, the toolchain will operate on only the chosen file.
11
12 ====Execute All Unmodified Files in a Directory'====
13 When selected, the toolchain will operate on all the unmodifed files in the directory that the chosen file is in.
14
15 ==Example==
16 Example of using polyfile follows below.
17
18 > python polyfile.py
19 This brings up the polyfile dialog.
20
21 """
22
23 from __future__ import absolute_import
24
25 from skeinforge_application.skeinforge_utilities import skeinforge_polyfile
26
27
28 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
29 __date__ = '$Date: 2008/21/04 $'
30 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
31
32
33 def getNewRepository():
34         'Get new repository.'
35         return skeinforge_polyfile.PolyfileRepository()
36
37
38 def main():
39         "Display the file or directory dialog."
40         settings.startMainLoopFromConstructor(getNewRepository())
41
42 if __name__ == "__main__":
43         main()