-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathPaths.cs
248 lines (218 loc) · 9.25 KB
/
Paths.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
//---------------------------------------------------------------------------------
//Paths.cs - version 2.0.2.0b
// TextBox control based class designed to be used with Microsoft's IronPython.
// Maybe useful for testing Python scripts with IronPython.
//
// WHAT'S NEW:
// - Updated IronPython_Tutorial to point to IronPython 2.0B2 path
// - Added Python25Dirs
// TO DO:
//
//BY DOWNLOADING AND USING, YOU AGREE TO THE FOLLOWING TERMS:
//Copyright (c) 2006-2008 by Joseph P. Socoloski III
//LICENSE
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//the MIT License, given here: <http://www.opensource.org/licenses/mit-license.php>
//---------------------------------------------------------------------------------
using System;
using System.IO;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using IronPython.Hosting;
namespace UIIronTextBox
{
namespace Paths
{
/// <summary>
/// Misc Paths. Customize here.
/// </summary>
public class MiscDirs
{
/// <summary>
/// MIT's ConceptNet 2.1 directory.
/// default: "...MyDocuments) + @"\Python Projects\conceptnet2.1"
/// </summary>
public static string ConceptNet = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Python Projects\conceptnet2.1";
/// <summary>
/// MIT's MontyLingua directory.
/// default: "...MyDocuments) + @"\Python Projects\conceptnet2.1\montylingua"
/// </summary>
public static string montylingua = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Python Projects\conceptnet2.1\montylingua";
/// <summary>
/// Visual Studio\Projects Folder.
/// default: "..MyDocuments) + @"\Visual Studio 2008\Projects"
/// </summary>
public static string vs_Projects = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Visual Studio 2008\Projects";
/*
/// <summary>
/// StringCollection of all MiscDirs
/// </summary>
public static StringCollection scMiscDirs
{
get
{
UIIronTextBox.IronTextBox.scMisc.Clear();
UIIronTextBox.IronTextBox.scMisc.Add(ConceptNet);
UIIronTextBox.IronTextBox.scMisc.Add(montylingua);
UIIronTextBox.IronTextBox.scMisc.Add(vs_Projects);
return UIIronTextBox.IronTextBox.scMisc; }
//set { UIIronTextBox.IronTextBox.scMisc = value; }
}
*/
/// <summary>
/// Misc Paths.
/// </summary>
public MiscDirs()
{
}
}
/// <summary>
/// Python 2.4 Paths. Customize here.
/// </summary>
public class Python24Dirs
{
/// <summary>
/// Folder to Python library modules.
/// default: "C:\Python24\Lib"
/// </summary>
public static string Python24_Lib = @"C:\Python24\Lib";
/// <summary>
/// Folder to Tkinter library modules.
/// default: "C:\Python24\Lib\lib-tk"
/// </summary>
public static string Python24_Lib_lib_tk = @"C:\Python24\Lib\lib-tk";
/// <summary>
/// default: "C:\Python24\libs"
/// </summary>
public static string Python24_libs = @"C:\Python24\libs";
/// <summary>
/// default: "C:\Python24\DLLs"
/// </summary>
public static string Python24_DLLs = @"C:\Python24\DLLs";
/// <summary>
/// Some useful programs written in Python.
/// default: "C:\Python24\Tools"
/// </summary>
public static string Python24_Tools = @"C:\Python24\Tools";
/// <summary>
/// Some useful programs written in Python.
/// default: "C:\Python24\Tools\Scripts"
/// </summary>
public static string Python24_Tools_Scripts = @"C:\Python24\Tools\Scripts";
/*
/// <summary>
/// StringCollection of all Python24Dirs
/// </summary>
public static StringCollection scPython24Dirs
{
get
{
UIIronTextBox.IronTextBox.scPython24.Clear();
UIIronTextBox.IronTextBox.scPython24.Add(Python24_Lib);
UIIronTextBox.IronTextBox.scPython24.Add(Python24_Lib_lib_tk);
UIIronTextBox.IronTextBox.scPython24.Add(Python24_libs);
UIIronTextBox.IronTextBox.scPython24.Add(Python24_DLLs);
UIIronTextBox.IronTextBox.scPython24.Add(Python24_Tools);
UIIronTextBox.IronTextBox.scPython24.Add(Python24_Tools_Scripts);
return UIIronTextBox.IronTextBox.scPython24;
}
}
*/
/// <summary>
/// Python 2.4 Paths
/// </summary>
public Python24Dirs()
{
}
}
/// <summary>
/// Python 2.5 Paths. Customize here.
/// </summary>
public class Python25Dirs
{
/// <summary>
/// Folder to Python library modules.
/// default: "C:\Python25\Lib"
/// </summary>
public static string Python25_Lib = @"C:\Python25\Lib";
/// <summary>
/// Folder to Tkinter library modules.
/// default: "C:\Python25\Lib\lib-tk"
/// </summary>
public static string Python25_Lib_lib_tk = @"C:\Python25\Lib\lib-tk";
/// <summary>
/// default: "C:\Python25\libs"
/// </summary>
public static string Python25_libs = @"C:\Python25\libs";
/// <summary>
/// default: "C:\Python25\DLLs"
/// </summary>
public static string Python25_DLLs = @"C:\Python25\DLLs";
/// <summary>
/// Some useful programs written in Python.
/// default: "C:\Python25\Tools"
/// </summary>
public static string Python25_Tools = @"C:\Python25\Tools";
/// <summary>
/// Some useful programs written in Python.
/// default: "C:\Python25\Tools\Scripts"
/// </summary>
public static string Python25_Tools_Scripts = @"C:\Python25\Tools\Scripts";
/*
/// <summary>
/// StringCollection of all Python25Dirs
/// </summary>
public static StringCollection scPython25Dirs
{
get
{
UIIronTextBox.IronTextBox.scPython25.Clear();
UIIronTextBox.IronTextBox.scPython25.Add(Python25_Lib);
UIIronTextBox.IronTextBox.scPython25.Add(Python25_Lib_lib_tk);
UIIronTextBox.IronTextBox.scPython25.Add(Python25_libs);
UIIronTextBox.IronTextBox.scPython25.Add(Python25_DLLs);
UIIronTextBox.IronTextBox.scPython25.Add(Python25_Tools);
UIIronTextBox.IronTextBox.scPython25.Add(Python25_Tools_Scripts);
return UIIronTextBox.IronTextBox.scPython25;
}
}
*/
/// <summary>
/// Python 2.5 Paths
/// </summary>
public Python25Dirs()
{
}
}
/// <summary>
/// IronPython Paths. Customize here.
/// </summary>
public class IronPythonDirs
{
/// <summary>
/// Current Assembly.Location
/// </summary>
public static string Runtime = Path.GetDirectoryName(typeof(IronPythonDirs).Assembly.Location);
/// <summary>
/// IronPython Tutorial scripts.
/// default: "...MyDocuments) + @"\Visual Studio 2008\Projects\IronPython-2.0B2\Tutorial"
/// </summary>
public static string IronPython_Tutorial = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Visual Studio 2008\Projects\IronPython-2.0B2\Tutorial";
/// <summary>
/// IronPython Paths
/// </summary>
static IronPythonDirs()
{
}
}
}
}