Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
|
||||
1 # -*- coding: utf-8 -*- 2 """CircuitPython releases. 3 """ 4 from __future__ import absolute_import 5 6 from platformids import _debug, _verbose 7 from platformids import rte2num, num2rte, num2pretty, custom_dist 8 9 from platformids.embed.micropython import RTE_MICROPYTHON 10 11 12 __author__ = 'Arno-Can Uestuensoez' 13 __license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints" 14 __copyright__ = "Copyright (C) 2010-2018 Arno-Can Uestuensoez" \ 15 " @Ingenieurbuero Arno-Can Uestuensoez" 16 __version__ = '0.1.1' 17 __uuid__ = "7add5ded-c39b-4b6e-8c87-1b3a1c150ee9" 18 19 20 RTE_CIRCUITPYTHON = RTE_MICROPYTHON + custom_dist.add_enum() #: implementation/distribution variants 21 22 23 #: mapping of the rte string and numeric representation to the numeric value 24 rte2num.update( 25 { 26 'circuitpython': RTE_CIRCUITPYTHON, 27 RTE_CIRCUITPYTHON: RTE_CIRCUITPYTHON, 28 } 29 ) 30 31 32 #: mapping of the rte numeric representation to the string value 33 num2rte.update( 34 { 35 RTE_CIRCUITPYTHON: 'circuitpython', 36 } 37 ) 38 39 40 #: mapping for pretty print 41 num2pretty.update( 42 { 43 RTE_CIRCUITPYTHON: 'CircuitPython', 44 } 45 ) 46 47 48 49 # if not isJython: 50 # try: 51 # osname = os.name 52 # except AttributeError: 53 # try: 54 # # CirctuiPython, MicroPython 55 # osname = sys.implementation.name # @UndefinedVariable 56 # if osname in ('circuitpython', 'micropython', ): 57 # sys.stderr.write('use special module for: ' + str(osname)) 58 # sys.exit() 59 # except: 60 # sys.stderr.write('platform is not supported') 61 # sys.exit() 62 # 63 # if PYV35Plus: 64 # PlatformIDsFileCheck = (FileNotFoundError,) # @UndefinedVariable 65 # 66 # else: 67 # PlatformIDsFileCheck = (Exception,) 68 # 69 # else: 70 # osname = os._name # @UndefinedVariable # set to the platform name 71 # PlatformIDsFileCheck = (IOError,) # @UndefinedVariable 72
Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
Copyright(C) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez | https://arnocan.wordpress.com |
Generated by Epydoc 4.0.4 / Python-3.8 / fedora27 on Wed Dec 18 15:06:56 2019 | http://epydoc.sourceforge.net |