chiark / gitweb /
Add uppercase STL and HEX to file dialog filters for linux/MacOS
[cura.git] / Cura / 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 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
25 import __init__
26
27 from skeinforge_application.skeinforge_utilities import skeinforge_polyfile
28
29
30 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
31 __date__ = '$Date: 2008/21/04 $'
32 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
33
34
35 def getNewRepository():
36         'Get new repository.'
37         return skeinforge_polyfile.PolyfileRepository()
38
39
40 def main():
41         "Display the file or directory dialog."
42         settings.startMainLoopFromConstructor(getNewRepository())
43
44 if __name__ == "__main__":
45         main()