Python3 courtesy of www.pythonconverter.com
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM python:2.7.15-alpine3.8
|
FROM python:3.7.0-alpine3.8
|
||||||
|
|
||||||
LABEL maintainer="Evan Richardson"
|
LABEL maintainer="Evan Richardson"
|
||||||
LABEL version="1.0"
|
LABEL version="1.0"
|
||||||
@@ -6,9 +6,9 @@ LABEL version="1.0"
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
ENV PYTHONPATH=/app/src/python
|
ENV PYTHONPATH=/app/src/python
|
||||||
RUN pip install --upgrade pip
|
RUN pip3 install --upgrade pip
|
||||||
RUN pip install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
RUN rm -rf /var/cache/apk
|
#RUN rm -rf /var/cache/apk
|
||||||
|
|
||||||
CMD ["/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"]
|
CMD ["/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"]
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#=============================================================================
|
#=============================================================================
|
||||||
import StringIO
|
import io
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
class Data:
|
class Data:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class Error ( Exception ):
|
|||||||
|
|
||||||
exception.add( msg )
|
exception.add( msg )
|
||||||
|
|
||||||
raise exception, None, trace
|
raise exception.with_traceback(trace)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -34,7 +34,7 @@ class Error ( Exception ):
|
|||||||
newError = Error( str( exception ) )
|
newError = Error( str( exception ) )
|
||||||
newError.add( msg )
|
newError.add( msg )
|
||||||
|
|
||||||
raise newError, None, trace
|
raise newError.with_traceback(trace)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
def __init__( self, msg ):
|
def __init__( self, msg ):
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ def fimport( filePath ):
|
|||||||
# Create a new module and exec the code in it's context.
|
# Create a new module and exec the code in it's context.
|
||||||
m = imp.new_module( rootName )
|
m = imp.new_module( rootName )
|
||||||
m.__file__ = absPath
|
m.__file__ = absPath
|
||||||
exec code in m.__dict__
|
exec(code, m.__dict__)
|
||||||
|
|
||||||
# Return the module object.
|
# Return the module object.
|
||||||
return m
|
return m
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Dump hex bytes to a table.
|
# Dump hex bytes to a table.
|
||||||
#
|
#
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
import StringIO
|
import io
|
||||||
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
def dump( buf ):
|
def dump( buf ):
|
||||||
|
|||||||
Reference in New Issue
Block a user