summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-12-16 17:42:18 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-12-16 18:39:18 +0200
commit1209e2c1e425f9c85d7e2662748d27bc2180a519 (patch)
tree224b00afc7fc136e3b193746ce0198f63507f1a8
parenta24d6f0b0373ece1bd0c70d1d144264402f2e8dc (diff)
Some stuff in command line args for scripts
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rw-r--r--README14
-rwxr-xr-xbin/eo_graph_gen.py50
-rwxr-xr-xbin/eo_js_gen.py44
-rwxr-xr-xbin/eo_py_gen.py39
-rwxr-xr-xbin/eo_xml_gen.py31
-rw-r--r--eoparser/helper.py2
-rw-r--r--examples/evas_elem_test.py1
-rw-r--r--examples/evas_test2.py2
8 files changed, 57 insertions, 126 deletions
diff --git a/README b/README
index 1d481c7..ef0ef77 100644
--- a/README
+++ b/README
@@ -63,8 +63,7 @@ EO Introspection
63 > python setup.py install 63 > python setup.py install
64 64
65 --prefix option can be used, to install package into user's dir. 65 --prefix option can be used, to install package into user's dir.
66 PYTHONPATH env_var must be provided. 66 Add install_dir into PYTHONPATH.
67
68 67
69 1.3 To compile Cython files, cython (0.17) is required. 68 1.3 To compile Cython files, cython (0.17) is required.
70 69
@@ -75,14 +74,13 @@ EO Introspection
75 or upgrade: 74 or upgrade:
76 > pip install --upgrade cython 75 > pip install --upgrade cython
77 76
78
79##################################################### 77#####################################################
80 78
812. Introspecting folder and building class graph: 792. Introspecting folder and building class graph:
82 80
83 2.1 Folder introspection 81 2.1 Folder introspection
84 Scanner runs recursively on defined folders 82 Scanner runs recursively on defined folders
85 > python eo_xml_gen.py --dir=IN_DIR --dir=IN_DIR2 --outdir=OUT_DIR -include=INCLUDE_DIR 83 > eo_xml_gen.py --dir=IN_DIR --dir=IN_DIR2 --outdir=OUT_DIR
86 script searches for dependencies in Python env paths. 84 script searches for dependencies in Python env paths.
87 If dependencies are not in Python search path, 85 If dependencies are not in Python search path,
88 --xmldir=XML_DIR can be needed 86 --xmldir=XML_DIR can be needed
@@ -94,7 +92,7 @@ EO Introspection
94# > python eo_graph_gen.py --dir=FOLDER_WITH_XML1 --dir=FOLDER_WITH_XMLS --outfile=OUTFILE.dot 92# > python eo_graph_gen.py --dir=FOLDER_WITH_XML1 --dir=FOLDER_WITH_XMLS --outfile=OUTFILE.dot
95# > dot -Tpng OUTFILE.dot -o out.png 93# > dot -Tpng OUTFILE.dot -o out.png
96# > eog out.png 94# > eog out.png
97 > python eo_graph_gen.py --dir=FOLDER_WITH_XML1 95 > eo_graph_gen.py --dir=FOLDER_WITH_XML1
98 --dir=FOLDER_WITH_XMLS --outfile=graph.png 96 --dir=FOLDER_WITH_XMLS --outfile=graph.png
99 > eog graph.png 97 > eog graph.png
100 98
@@ -103,7 +101,7 @@ EO Introspection
1033. Generating python bindings 1013. Generating python bindings
104 102
105 3.1 Generating python module for classes defined in XMLs: 103 3.1 Generating python module for classes defined in XMLs:
106 > python eo_py_gen.py --dir=XML_FOLDER --outdir=OUTDIR 104 > eo_py_gen.py --dir=XML_FOLDER --outdir=OUTDIR
107 --pkg="lib1 lib2" --module=MODULE_NAME --xmldir=INCLUDE_XML_DIR 105 --pkg="lib1 lib2" --module=MODULE_NAME --xmldir=INCLUDE_XML_DIR
108 -lname -I/include -DSOME_VAR=1 106 -lname -I/include -DSOME_VAR=1
109 107
@@ -182,13 +180,13 @@ EO Introspection
182 180
183 According to layout, package 'eorepo' will be installed into 181 According to layout, package 'eorepo' will be installed into
184 installation path. 182 installation path.
185 And it can be used as following: 183 It can be used as following:
186 from eorepo.eobase import EoBase 184 from eorepo.eobase import EoBase
187 185
188##################################################################### 186#####################################################################
189 187
1904. Generating js module for classes defined in XMLs: 1884. Generating js module for classes defined in XMLs:
191 a. > python eo_js_gen.py --dir=XML_FOLDER --outdir=OUTDIR 189 a. > eo_js_gen.py --dir=XML_FOLDER --outdir=OUTDIR
192 --module=MODULE_NAME --xmldir=INCLUDE_XML_DIR -lname -I/include 190 --module=MODULE_NAME --xmldir=INCLUDE_XML_DIR -lname -I/include
193 -DSOME_PATH=\"/path\" 191 -DSOME_PATH=\"/path\"
194 192
diff --git a/bin/eo_graph_gen.py b/bin/eo_graph_gen.py
index 3d3305d..d7b2342 100755
--- a/bin/eo_graph_gen.py
+++ b/bin/eo_graph_gen.py
@@ -3,7 +3,7 @@
3from eoparser.helper import isXML, dir_files_get, abs_path_get 3from eoparser.helper import isXML, dir_files_get, abs_path_get
4from eoparser.xmlparser import XMLparser 4from eoparser.xmlparser import XMLparser
5from argparse import ArgumentParser 5from argparse import ArgumentParser
6import os 6import os, sys
7 7
8def verbose_true(mes): 8def verbose_true(mes):
9 print mes 9 print mes
@@ -14,14 +14,14 @@ def verbose_false(mes):
14def main(): 14def main():
15 parser = ArgumentParser() 15 parser = ArgumentParser()
16 parser.add_argument("-d", "--dir", dest="directory", 16 parser.add_argument("-d", "--dir", dest="directory",
17 action="append", help="Source files directory") 17 action="append", help="Path to XML descriptions", required=True)
18 18
19 parser.add_argument("-o", "--outfile", dest="outfile", 19 parser.add_argument("-o", "--outfile", dest="outfile",
20 action="store", help="Path for output files") 20 action="store", help="Out file in png format. Default: \"out.png\"", default="out.png")
21 21
22 parser.add_argument("-v", "--verbose", 22 parser.add_argument("-v", "--verbose",
23 action="store_true", dest="verbose", default=False, 23 action="store_true", dest="verbose", default=False,
24 help="Print status messages to stdout") 24 help="Verbose output")
25 """ 25 """
26 parser.add_argument("--graphstyle", action="store", dest="graphstyle", default="digraph", 26 parser.add_argument("--graphstyle", action="store", dest="graphstyle", default="digraph",
27 help="Set graph style. Default: \"digraph\"") 27 help="Set graph style. Default: \"digraph\"")
@@ -48,7 +48,6 @@ def main():
48 parser.add_argument("--long-names", action="store", dest="short_long", default="short", 48 parser.add_argument("--long-names", action="store", dest="short_long", default="short",
49 help="Node shape.[\"short\", \"long\"] Default: \"short\"") 49 help="Node shape.[\"short\", \"long\"] Default: \"short\"")
50 50
51
52 styles = {} 51 styles = {}
53 52
54 args = parser.parse_args() 53 args = parser.parse_args()
@@ -99,33 +98,18 @@ def main():
99 else: 98 else:
100 verbose_print = verbose_false 99 verbose_print = verbose_false
101 100
102 verbose_print("Options: %s"%args) 101 directories = args.directory + sys.path
102 directories = abs_path_get(directories, False)
103 103
104 directories = [] 104 outfile = args.outfile
105 outfile = "" 105 outfile = os.path.expanduser(outfile)
106 outfile = os.path.abspath(outfile)
106 107
107 if args.directory == None: 108 outdir = os.path.split(outfile)[0]
108 print "ERROR: no source directory was provided" 109 if not os.path.exists(outdir):
109 exit(1) 110 print "ERROR: output directory %s doesn't exists... Aborting..."%outdir
110 elif args.outfile == None:
111 print "ERROR: no output file was provided"
112 exit(1) 111 exit(1)
113 112
114 else:
115 directories = abs_path_get(args.directory)
116
117 outfile = args.outfile
118 outfile = os.path.expanduser(outfile)
119 outfile = os.path.abspath(outfile)
120
121 outdir = os.path.split(outfile)[0]
122 if not os.path.exists(outdir):
123 print "ERROR: output directory %s doesn't exists... Aborting..."%outdir
124 exit(1)
125
126 verbose_print("Dirs: %s"%directories)
127 verbose_print("Outfile: %s"%outfile)
128
129 xml_files = dir_files_get(directories) 113 xml_files = dir_files_get(directories)
130 xml_files = filter(isXML, xml_files) 114 xml_files = filter(isXML, xml_files)
131 115
@@ -194,11 +178,11 @@ def main():
194 verbose_print("Dot file: '%s' was generated"%(tmp_dot_file)) 178 verbose_print("Dot file: '%s' was generated"%(tmp_dot_file))
195 verbose_print("Graph file: '%s was generated"%(outfile)) 179 verbose_print("Graph file: '%s was generated"%(outfile))
196 os.system("dot -Tpng %s -o %s"%(tmp_dot_file, outfile)) 180 os.system("dot -Tpng %s -o %s"%(tmp_dot_file, outfile))
197 os.system("neato -Tpng %s -o %s_neato"%(tmp_dot_file, outfile)) 181 #os.system("neato -Tpng %s -o %s_neato"%(tmp_dot_file, outfile))
198 os.system("twopi -Tpng %s -o %s_twopi"%(tmp_dot_file, outfile)) 182 #os.system("twopi -Tpng %s -o %s_twopi"%(tmp_dot_file, outfile))
199 os.system("circo -Tpng %s -o %s_circo"%(tmp_dot_file, outfile)) 183 #os.system("circo -Tpng %s -o %s_circo"%(tmp_dot_file, outfile))
200 os.system("fdp -Tpng %s -o %s_fdp"%(tmp_dot_file, outfile)) 184 #os.system("fdp -Tpng %s -o %s_fdp"%(tmp_dot_file, outfile))
201 os.system("sfdp -Tpng %s -o %s_sfdp"%(tmp_dot_file, outfile)) 185 #os.system("sfdp -Tpng %s -o %s_sfdp"%(tmp_dot_file, outfile))
202 186
203if __name__ == "__main__": 187if __name__ == "__main__":
204 main() 188 main()
diff --git a/bin/eo_js_gen.py b/bin/eo_js_gen.py
index 7855ceb..b7d0b1f 100755
--- a/bin/eo_js_gen.py
+++ b/bin/eo_js_gen.py
@@ -19,7 +19,8 @@ def makefile_file_generate(args, c_files, outdir):
19 module_name = args.module 19 module_name = args.module
20 pkg = args.pkg 20 pkg = args.pkg
21 incl_paths = ["."] 21 incl_paths = ["."]
22 incl_paths += args.include_paths 22 if args.include_paths is not None:
23 incl_paths += args.include_paths
23 libs = args.libraries 24 libs = args.libraries
24 lib_paths = args.library_paths 25 lib_paths = args.library_paths
25 cpp_defines = args.cpp_defines 26 cpp_defines = args.cpp_defines
@@ -98,29 +99,26 @@ def makefile_file_generate(args, c_files, outdir):
98 f.write(l + "\n") 99 f.write(l + "\n")
99 f.close() 100 f.close()
100 101
101
102
103
104def main(): 102def main():
105 parser = ArgumentParser() 103 parser = ArgumentParser()
106 parser.add_argument("-d", "--dir", dest="directory", 104 parser.add_argument("-d", "--dir", dest="directory",
107 action="append", help="Source files") 105 action="append", help="Path to XML descriptions", required=True)
108 106
109 parser.add_argument("-o", "--outdir", dest="outdir", 107 parser.add_argument("-o", "--outdir", dest="outdir",
110 action="store", help="Output directory") 108 action="store", help="Output directory", required=True)
111 109
112 parser.add_argument("-v", "--verbose", 110 parser.add_argument("-v", "--verbose",
113 action="store_true", dest="verbose", default=False, 111 action="store_true", dest="verbose", default=False,
114 help="Print status messages to stdout. Default: False") 112 help="Verbose output")
115 113
116 parser.add_argument("-X", "--xmldir", dest="xmldir", default=sys.path, 114 parser.add_argument("-X", "--xmldir", dest="xmldir", default=sys.path,
117 action="append", help="Include eobase directory") 115 action="append", help="Directory to search for parent classes's XMLs")
118 116
119 parser.add_argument("--pkg", dest="pkg", default = "elementary eo", 117 parser.add_argument("--pkg", dest="pkg", default = "eo",
120 action="store", help="pkg-confing libraries. Default: \"elementary eo\"") 118 action="store", help="pkg-confing libraries. Default: \"eo\"")
121 119
122 parser.add_argument("-m", "--module", dest="module", 120 parser.add_argument("-m", "--module", dest="module",
123 action="store", help="Name of module to generate") 121 action="store", help="Name of module", required=True)
124 122
125 parser.add_argument("-I", "--include", dest="include_paths", 123 parser.add_argument("-I", "--include", dest="include_paths",
126 action="append", help="Pre-processor include path") 124 action="append", help="Pre-processor include path")
@@ -138,35 +136,19 @@ def main():
138 args = parser.parse_args() 136 args = parser.parse_args()
139 137
140 verbose_print = verbose_true if args.verbose is True else verbose_false 138 verbose_print = verbose_true if args.verbose is True else verbose_false
141 verbose_print("Options: %s"%args)
142 139
143 directories = [] 140 directories = []
144 outdir = "" 141 outdir = ""
145 sourcedir = "" 142 sourcedir = ""
146 incl_dirs = [] 143 incl_dirs = []
147 144
148 if args.directory == None: 145 directories = abs_path_get(args.directory)
149 print "ERROR: No source directory was provided" 146 outdir = abs_path_get([args.outdir])[0]
150 exit(1) 147 if args.xmldir is not None:
151 elif args.outdir == None: 148 incl_dirs = abs_path_get(args.xmldir, False)
152 print "ERROR: No out directory was provided"
153 exit(1)
154 elif args.module == None:
155 print "ERROR: No module name was provided"
156 exit(1)
157 else:
158 directories = abs_path_get(args.directory)
159 outdir = abs_path_get([args.outdir])[0]
160 if args.xmldir is not None:
161 incl_dirs = abs_path_get(args.xmldir, False)
162
163 verbose_print("Dirs: %s"%directories)
164 verbose_print("Outdir: %s"%outdir)
165 verbose_print("Include dirs: %s"%incl_dirs)
166 149
167 xml_files = dir_files_get(directories, False) 150 xml_files = dir_files_get(directories, False)
168 xml_files = filter(isXML, xml_files) 151 xml_files = filter(isXML, xml_files)
169 verbose_print("In Files: %s"%xml_files)
170 152
171 xp = XMLparser() 153 xp = XMLparser()
172 xp.module_parse(args.module, xml_files, incl_dirs) 154 xp.module_parse(args.module, xml_files, incl_dirs)
diff --git a/bin/eo_py_gen.py b/bin/eo_py_gen.py
index e43e4a9..1874584 100755
--- a/bin/eo_py_gen.py
+++ b/bin/eo_py_gen.py
@@ -50,7 +50,6 @@ def setup_file_generate(args, outdir):
50 lines.append("(e_compile_args, e_link_args) = pkgconfig(\"%s\")"%pkg) 50 lines.append("(e_compile_args, e_link_args) = pkgconfig(\"%s\")"%pkg)
51 lines.append("") 51 lines.append("")
52 52
53
54 if cpp_defines is not None: 53 if cpp_defines is not None:
55 for d in cpp_defines: 54 for d in cpp_defines:
56 lines.append("e_compile_args.append(\"-D%s\")"%d) 55 lines.append("e_compile_args.append(\"-D%s\")"%d)
@@ -109,23 +108,23 @@ def setup_file_generate(args, outdir):
109def main(): 108def main():
110 parser = ArgumentParser() 109 parser = ArgumentParser()
111 parser.add_argument("-d", "--dir", dest="directory", 110 parser.add_argument("-d", "--dir", dest="directory",
112 action="append", help="Source files") 111 action="append", help="Path to XML descriptions", required=True)
113 112
114 parser.add_argument("-o", "--outdir", dest="outdir", 113 parser.add_argument("-o", "--outdir", dest="outdir",
115 action="store", help="Output directory") 114 action="store", help="Output directory", required=True)
116 115
117 parser.add_argument("-v", "--verbose", 116 parser.add_argument("-v", "--verbose",
118 action="store_true", dest="verbose", default=False, 117 action="store_true", dest="verbose", default=False,
119 help="Print status messages to stdout. Default: False") 118 help="Verbose output")
120 119
121 parser.add_argument("-X", "--xmldir", dest="xmldir", default=sys.path, 120 parser.add_argument("-X", "--xmldir", dest="xmldir", default=sys.path,
122 action="append", help="Include eobase directory") 121 action="append", help="Directory to search for parent classes's XMLs")
123 122
124 parser.add_argument("--pkg", dest="pkg", default = "eo", 123 parser.add_argument("--pkg", dest="pkg", default = "eo",
125 action="store", help="pkg-confing libraries. Default: \"eo\"") 124 action="store", help="pkg-confing libraries. Default: \"eo\"")
126 125
127 parser.add_argument("-m", "--module", dest="module", 126 parser.add_argument("-m", "--module", dest="module",
128 action="store", help="Name of module to generate") 127 action="store", help="Name of module", required=True)
129 128
130 parser.add_argument("-I", "--include", dest="include_paths", 129 parser.add_argument("-I", "--include", dest="include_paths",
131 action="append", help="Pre-processor include path") 130 action="append", help="Pre-processor include path")
@@ -143,41 +142,22 @@ def main():
143 142
144 verbose_print = verbose_true if args.verbose is True else verbose_false 143 verbose_print = verbose_true if args.verbose is True else verbose_false
145 144
146 verbose_print("Options: %s"%args)
147
148 directories = [] 145 directories = []
149 outdir = "" 146 outdir = ""
150 sourcedir = "" 147 sourcedir = ""
151 incl_dirs = [] 148 incl_dirs = []
152 149
153 if args.directory == None: 150 directories = abs_path_get(args.directory)
154 print "ERROR: No source directory was provided" 151 outdir = abs_path_get([args.outdir])[0]
155 exit(1) 152 if args.xmldir is not None:
156 elif args.outdir == None: 153 incl_dirs = abs_path_get(args.xmldir, False)
157 print "ERROR: No out directory was provided"
158 exit(1)
159 elif args.module == None:
160 print "ERROR: No module name was provided"
161 exit(1)
162 else:
163 directories = abs_path_get(args.directory)
164 outdir = abs_path_get([args.outdir])[0]
165 if args.xmldir is not None:
166 incl_dirs = abs_path_get(args.xmldir, False)
167
168
169 verbose_print("Dirs: %s"%directories)
170 verbose_print("Outdir: %s"%outdir)
171 verbose_print("Include dirs: %s"%incl_dirs)
172 154
173 xml_files = dir_files_get(directories, False) 155 xml_files = dir_files_get(directories, False)
174 xml_files = filter(isXML, xml_files) 156 xml_files = filter(isXML, xml_files)
175 verbose_print("In Files: %s"%xml_files)
176 157
177 xp = XMLparser() 158 xp = XMLparser()
178 xp.module_parse(args.module, xml_files, incl_dirs) 159 xp.module_parse(args.module, xml_files, incl_dirs)
179 160
180
181 if args.module == "eobase": 161 if args.module == "eobase":
182 outdir_tmp = os.path.join(outdir, const.PREFIX) 162 outdir_tmp = os.path.join(outdir, const.PREFIX)
183 if not os.path.exists(outdir_tmp): 163 if not os.path.exists(outdir_tmp):
@@ -192,7 +172,6 @@ def main():
192 if args.module == "eobase": 172 if args.module == "eobase":
193 for d in incl_dirs: 173 for d in incl_dirs:
194 d_tmp = os.path.join(d, "eodefault.pxd") 174 d_tmp = os.path.join(d, "eodefault.pxd")
195 #print "dir: ", d_tmp
196 if os.path.exists(d_tmp): 175 if os.path.exists(d_tmp):
197 sourcedir = d 176 sourcedir = d
198 break 177 break
diff --git a/bin/eo_xml_gen.py b/bin/eo_xml_gen.py
index 5e5f26b..cfbd298 100755
--- a/bin/eo_xml_gen.py
+++ b/bin/eo_xml_gen.py
@@ -19,20 +19,20 @@ def main():
19 19
20 parser = ArgumentParser() 20 parser = ArgumentParser()
21 parser.add_argument("-d", "--dir", dest="directory", 21 parser.add_argument("-d", "--dir", dest="directory",
22 action="append", help="source files") 22 action="append", help="Source C-files to introspect", required=True)
23 23
24 parser.add_argument("-o", "--outdir", dest="outdir", 24 parser.add_argument("-o", "--outdir", dest="outdir",
25 action="store", help="output directory") 25 action="store", help="Output directory", required=True)
26 26
27 parser.add_argument("-t", "--typedefs", dest="typedefs", 27 parser.add_argument("-t", "--typedefs", dest="typedefs",
28 action="store", help="Additional typedefs for parser") 28 action="store", help="Additional typedefs for parser")
29 29
30 parser.add_argument("-X", "--xmldir", dest="xmldir", default = sys.path, 30 parser.add_argument("-X", "--xmldir", dest="xmldir", default = sys.path,
31 action="append", help="Include xml directory") 31 action="append", help="Directory to search for parent classes's XMLs")
32 32
33 parser.add_argument("-v", "--verbose", 33 parser.add_argument("-v", "--verbose",
34 action="store_true", dest="verbose", default=False, 34 action="store_true", dest="verbose", default=False,
35 help="print status messages to stdout") 35 help="Verbose output")
36 36
37 args = parser.parse_args() 37 args = parser.parse_args()
38 verbose_print = None 38 verbose_print = None
@@ -47,25 +47,15 @@ def main():
47 typedefs = "" 47 typedefs = ""
48 xmldir = [] 48 xmldir = []
49 49
50 if args.directory == None: 50 directories = abs_path_get(args.directory)
51 print "No source directory was provided" 51 outdir = abs_path_get([args.outdir])[0]
52 exit(1)
53 elif args.outdir == None:
54 print "No out directory was provided"
55 exit(1)
56 else:
57 directories = abs_path_get(args.directory)
58 if args.xmldir is not None:
59 xmldir = abs_path_get(args.xmldir, False)# not abort if dir doesn't exist
60 52
61 outdir = abs_path_get([args.outdir])[0] 53 if args.xmldir is not None:
54 xmldir = abs_path_get(args.xmldir, False)# not abort if dir doesn't exist
62 55
63 if args.typedefs != None: 56 if args.typedefs != None:
64 typedefs = abs_path_get([args.typedefs])[0] 57 typedefs = abs_path_get([args.typedefs])[0]
65 58
66 verbose_print("dirs %s"%directories)
67 verbose_print("outdir %s"%outdir)
68
69 files = dir_files_get(directories) 59 files = dir_files_get(directories)
70 c_files = filter(isC, files) 60 c_files = filter(isC, files)
71 h_files = filter(isH, files) 61 h_files = filter(isH, files)
@@ -86,7 +76,6 @@ def main():
86 for f in h_files: 76 for f in h_files:
87 cp.h_file_data_get(f) 77 cp.h_file_data_get(f)
88 78
89
90 #remove records, which are not class, t.e. they don't have GET_FUNCTION key 79 #remove records, which are not class, t.e. they don't have GET_FUNCTION key
91 cl_data_tmp = dict(cp.cl_data) #deep copy of dictionary 80 cl_data_tmp = dict(cp.cl_data) #deep copy of dictionary
92 for k in cl_data_tmp: 81 for k in cl_data_tmp:
@@ -109,8 +98,6 @@ def main():
109 cl_data_tmp2 = dict(cp.cl_data) 98 cl_data_tmp2 = dict(cp.cl_data)
110 parents_to_find = filter(lambda ll: True if ll not in cl_data_tmp2 else False, list_of_parents) 99 parents_to_find = filter(lambda ll: True if ll not in cl_data_tmp2 else False, list_of_parents)
111 100
112 verbose_print("parents_to_find: %s"%parents_to_find)
113
114 #if we have parents to find 101 #if we have parents to find
115 if len(parents_to_find) != 0: 102 if len(parents_to_find) != 0:
116 if len(xmldir) == 0: 103 if len(xmldir) == 0:
@@ -123,7 +110,6 @@ def main():
123 if len(xml_files) == 0: 110 if len(xml_files) == 0:
124 print "ERROR: no include files found for %s classes... Aborting..."% ",".join(parents_to_find) 111 print "ERROR: no include files found for %s classes... Aborting..."% ",".join(parents_to_find)
125 exit(1) 112 exit(1)
126 verbose_print("xml_files: %s\n"%xml_files)
127 113
128 #parsing include XMLs 114 #parsing include XMLs
129 xp = XMLparser() 115 xp = XMLparser()
@@ -139,7 +125,6 @@ def main():
139 parents_to_find.pop(i) 125 parents_to_find.pop(i)
140 del xp 126 del xp
141 127
142
143 #if there are still parents, which we need to find - exit 128 #if there are still parents, which we need to find - exit
144 if len(parents_to_find) != 0: 129 if len(parents_to_find) != 0:
145 print "ERROR: XML files weren't found for %s classes... Aborting"%(",".join(parents_to_find)) 130 print "ERROR: XML files weren't found for %s classes... Aborting"%(",".join(parents_to_find))
diff --git a/eoparser/helper.py b/eoparser/helper.py
index 5ea7523..18cf703 100644
--- a/eoparser/helper.py
+++ b/eoparser/helper.py
@@ -152,6 +152,8 @@ def abs_path_get(_paths, _warning = True):
152 if _warning: 152 if _warning:
153 print "ERROR: path %s doesn't exist... Aborting..."%path_tmp 153 print "ERROR: path %s doesn't exist... Aborting..."%path_tmp
154 exit(1) 154 exit(1)
155 else:
156 print "Warning: path %s doesn't exist..."%path_tmp
155 return res 157 return res
156 158
157 159
diff --git a/examples/evas_elem_test.py b/examples/evas_elem_test.py
index a04f1b0..62d1a14 100644
--- a/examples/evas_elem_test.py
+++ b/examples/evas_elem_test.py
@@ -37,6 +37,7 @@ box.elm_obj_box_pack_end(but)
37but.evas_obj_visibility_set(1) 37but.evas_obj_visibility_set(1)
38but.evas_obj_color_set(255, 255, 0, 255) 38but.evas_obj_color_set(255, 255, 0, 255)
39but.elm_wdg_text_part_set(None, "Button") 39but.elm_wdg_text_part_set(None, "Button")
40but.evas_obj_size_set(100, 30)
40 41
41d = w1.elm_obj_win_screen_dpi_get() 42d = w1.elm_obj_win_screen_dpi_get()
42print d 43print d
diff --git a/examples/evas_test2.py b/examples/evas_test2.py
index 4e6f766..900f2da 100644
--- a/examples/evas_test2.py
+++ b/examples/evas_test2.py
@@ -137,9 +137,9 @@ print type(w)
137ba = ElwButton(w); 137ba = ElwButton(w);
138ba.exevas_obj_visibility_set(1) 138ba.exevas_obj_visibility_set(1)
139ba.exevas_obj_position_set(30, 100) 139ba.exevas_obj_position_set(30, 100)
140ba.elw_button_text_set("(B) ADD cb")
140ba.exevas_obj_size_set(100, 50) 141ba.exevas_obj_size_set(100, 50)
141ba.exevas_obj_color_set(255, 0, 255, 255) 142ba.exevas_obj_color_set(255, 0, 255, 255)
142ba.elw_button_text_set("(B) ADD cb")
143 143
144 144
145 145