Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 244) sorted by relevance

12345678910

/AliOS-Things-master/components/py_engine/tests/basics/
A Dsys1.py4 import usys as sys namespace
6 import sys
8 print(sys.__name__)
9 print(type(sys.path))
10 print(type(sys.argv))
11 print(sys.byteorder in ('little', 'big'))
14 print(sys.maxsize > 100)
20 print(sys.implementation.name in ('cpython', 'micropython'))
25 if hasattr(sys.implementation, 'mpy'):
26 print(type(sys.implementation.mpy))
A Dsys_getsizeof.py4 import usys as sys namespace
6 import sys
8 sys.getsizeof
13 print(sys.getsizeof([1, 2]) >= 2)
14 print(sys.getsizeof({1: 2}) >= 2)
18 print(sys.getsizeof(A()) > 0)
23 assert sys.getsizeof(deque((), 1)) > 0
A Dsys_exit.py4 import usys as sys namespace
6 import sys
9 sys.exit
20 sys.exit()
25 sys.exit(42)
/AliOS-Things-master/hardware/chip/haas1000/release/auto_build_tool/
A Dota_gen_md5_bin.py4 from sys import platform as _platform
49 print(sys.argv[0])
55 sys.stdout.flush()
63 sys.exit(2)
67 sys.exit(2)
72 sys.exit(2)
80 sys.exit()
87 sys.exit(2)
90 sys.exit(2)
115 sys.exit(2)
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/release/auto_build_tool/
A Dota_gen_md5_bin.py4 from sys import platform as _platform
49 print(sys.argv[0])
55 sys.stdout.flush()
63 sys.exit(2)
67 sys.exit(2)
72 sys.exit(2)
80 sys.exit()
87 sys.exit(2)
90 sys.exit(2)
115 sys.exit(2)
[all …]
/AliOS-Things-master/components/py_engine/engine/tools/
A Dcc117 import sys
105 sys.exit(1)
139 sys.exit(1)
189 sys.exit(1)
203 sys.exit(1)
243 sys.exit(ret)
245 if sys.argv[1] == '-E':
252 sys.exit(1)
253 elif sys.argv[1] == '-fpreprocessed':
258 print('%s: unknown first option "%s"' % (sys.argv[0], sys.argv[1]))
[all …]
A Dmetrics.py46 import collections, sys, re, subprocess
76 sys.stdout.flush()
97 sys.exit(1)
134 sys.exit(1)
172 sys.exit(1)
213 if len(sys.argv) == 1:
218 sys.exit(1)
219 cmd = sys.argv.pop(1)
225 print("{}: unknown command '{}'".format(sys.argv[0], cmd))
226 sys.exit(1)
[all …]
A Dupip.py8 import sys
191 sys.exit(1)
252 file=sys.stderr,
260 install_path = sys.path[1]
300 if len(sys.argv) < 2 or sys.argv[1] == "-h" or sys.argv[1] == "--help":
304 if sys.argv[1] != "install":
310 while i < len(sys.argv) and sys.argv[i][0] == "-":
311 opt = sys.argv[i]
317 install_path = sys.argv[i]
320 list_file = sys.argv[i]
[all …]
/AliOS-Things-master/components/py_engine/engine/py/
A Dmakeqstrdefs.py14 import sys
151 if len(sys.argv) < 6:
153 sys.exit(2)
159 args.command = sys.argv[1]
175 for arg in sys.argv[1:]:
183 sys.exit(2)
189 sys.exit(0)
191 args.mode = sys.argv[2]
193 args.output_dir = sys.argv[4]
194 args.output_file = None if len(sys.argv) == 5 else sys.argv[5] # Unused for command=split
[all …]
/AliOS-Things-master/components/py_engine/tests/cpydiff/
A Dcore_import_split_ns_pkgs.py7 import sys
9 sys.path.append(sys.path[1] + "/modules")
10 sys.path.append(sys.path[1] + "/modules2")
/AliOS-Things-master/components/py_engine/tests/misc/
A Dsys_exc_info.py2 import usys as sys namespace
4 import sys
7 sys.exc_info
14 print(sys.exc_info()[0:2])
20 print(sys.exc_info()[0:2])
A Dprint_exception.py4 import usys as sys namespace
7 import sys
12 if hasattr(sys, "print_exception"):
13 print_exception = sys.print_exception
17 print_exception = lambda e, f: traceback.print_exception(None, e, sys.exc_info()[2], file=f)
93 if hasattr(sys, "print_exception"):
95 sys.print_exception(Exception, 1)
/AliOS-Things-master/components/ota/tools/
A Dota_image_package.py3 import os, sys, re, struct, getopt
4 from sys import platform
9 print("Usage:" + sys.argv[0])
10 print(sys.argv[0] + " main_bin mcu_bin offset magic")
12 sys.stdout.flush()
17 sys.exit(0)
49 opts, args = getopt.getopt(sys.argv[1:], "h", ["help"])
53 sys.exit(2)
57 sys.exit(2)
68 sys.exit(2)
/AliOS-Things-master/hardware/chip/haas1000/release/aos_burn_tool/
A Dflash_program_ll.py2 import os, sys, re, time
10 sys.exit(-1)
27 sys.stdout.flush()
30 sys.stdout.flush()
39 sys.stdout.flush()
50 sys.stdout.flush()
183 length = len(sys.argv)
188 serialport = sys.argv[1]
189 baudrate = sys.argv[2]
192 filename = sys.argv[i]
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/release/aos_burn_tool/
A Dflash_program_ll.py2 import os, sys, re, time
10 sys.exit(-1)
27 sys.stdout.flush()
30 sys.stdout.flush()
39 sys.stdout.flush()
50 sys.stdout.flush()
183 length = len(sys.argv)
188 serialport = sys.argv[1]
189 baudrate = sys.argv[2]
192 filename = sys.argv[i]
[all …]
/AliOS-Things-master/components/py_engine/tests/io/
A Dbuiltin_print_file.py4 import usys as sys namespace
6 import sys
9 sys.stdout
14 print(file=sys.stdout)
15 print("test", file=sys.stdout)
A Dfile_stdio.py2 import usys as sys namespace
4 import sys
6 print(sys.stdin.fileno())
7 print(sys.stdout.fileno())
/AliOS-Things-master/components/freetype/src/tools/docmaker/
A Dutils.py4 import string, sys, os, glob
65 old_stdout = sys.stdout
67 sys.stdout = new_file
76 sys.stdout = output[1]
86 sys.stderr.write( "argument" + " '" + output_dir + "' " + \
88 sys.exit( 2 )
101 sys.stderr.write( pathname + " couldn't be accessed\n" )
112 args = sys.argv[1 :]
A Ddocmaker.py24 import sys, os, time, string, glob, getopt
47 opts, args = getopt.getopt( sys.argv[1:], \
52 sys.exit( 2 )
56 sys.exit( 1 )
67 sys.exit( 0 )
103 main( sys.argv )
A Ddocbeauty.py15 import sys, os, time, string, getopt
58 opts, args = getopt.getopt( sys.argv[1:], \
63 sys.exit( 2 )
67 sys.exit( 1 )
77 sys.exit( 0 )
110 main( sys.argv )
/AliOS-Things-master/components/freetype/src/tools/
A Dchktrcmp.py9 import sys
25 for i in range( 1, len( sys.argv ) ):
26 if sys.argv[i].startswith( "--help" ):
27 print "Usage: %s [option]" % sys.argv[0]
42 if sys.argv[i].startswith( "--src-dirs=" ):
43 SRC_FILE_DIRS = sys.argv[i].replace( "--src-dirs=", "", 1 ).split( ":" )
44 elif sys.argv[i].startswith( "--def-files=" ):
45 TRACE_DEF_FILES = sys.argv[i].replace( "--def-files=", "", 1 ).split( ":" )
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/pngminus/
A Dmakevms.com13 $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
17 $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
26 $ if f$trnlnm("SYS").eqs."" then define sys decc$library_include:
38 $ write sys$output "Compiling PNG contrib programs ..."
39 $ write sys$output "Building pnm2png..."
45 $ write sys$output "Building png2pnm..."
87 $ write sys$output P2
/AliOS-Things-master/components/py_engine/tests/micropython/
A Dimport_mpy_native_gc.py4 import gc, sys, uio, uos
6 sys.implementation.mpy
61 if sys.implementation.mpy not in features0_file_contents:
66 user_files = {"/features0.mpy": features0_file_contents[sys.implementation.mpy]}
70 sys.path.append("/userfs")
77 del sys.modules["features0"]
91 sys.path.pop()
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Dstats.c127 stats_display_sys(struct stats_sys *sys) in stats_display_sys() argument
130 LWIP_PLATFORM_DIAG(("sem.used: %"U32_F"\n\t", (u32_t)sys->sem.used)); in stats_display_sys()
131 LWIP_PLATFORM_DIAG(("sem.max: %"U32_F"\n\t", (u32_t)sys->sem.max)); in stats_display_sys()
132 LWIP_PLATFORM_DIAG(("sem.err: %"U32_F"\n\t", (u32_t)sys->sem.err)); in stats_display_sys()
133 LWIP_PLATFORM_DIAG(("mutex.used: %"U32_F"\n\t", (u32_t)sys->mutex.used)); in stats_display_sys()
134 LWIP_PLATFORM_DIAG(("mutex.max: %"U32_F"\n\t", (u32_t)sys->mutex.max)); in stats_display_sys()
135 LWIP_PLATFORM_DIAG(("mutex.err: %"U32_F"\n\t", (u32_t)sys->mutex.err)); in stats_display_sys()
136 LWIP_PLATFORM_DIAG(("mbox.used: %"U32_F"\n\t", (u32_t)sys->mbox.used)); in stats_display_sys()
137 LWIP_PLATFORM_DIAG(("mbox.max: %"U32_F"\n\t", (u32_t)sys->mbox.max)); in stats_display_sys()
138 LWIP_PLATFORM_DIAG(("mbox.err: %"U32_F"\n\t", (u32_t)sys->mbox.err)); in stats_display_sys()
/AliOS-Things-master/hardware/chip/haas1000/
A D_haas1000_alios_lds.py2 import os, sys, re, codecs, shutil, platform
5 params = sys.argv[1:]
6 if os.path.isfile(sys.argv[1]):
7 with codecs.open(sys.argv[1], 'r', 'UTF-8') as fh:
10 if len(sys.argv) > 2:
11 params += sys.argv[2:]
55 print("the script is %s" % sys.argv[0])
76 comp_path = os.path.dirname(sys.argv[0])

Completed in 25 milliseconds

12345678910