kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Merge 7bfd12c2d3
into 3b29fbbc17
commit
a0ba3daf37
|
@ -5,7 +5,7 @@ EXPOSE 3000
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN apt-get update && apt-get install -y curl gpg-agent
|
RUN apt-get update && apt-get install -y curl gpg-agent
|
||||||
RUN curl --silent --location https://deb.nodesource.com/setup_14.x | bash -
|
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | bash -
|
||||||
RUN apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \
|
RUN apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \
|
||||||
ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \
|
ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \
|
||||||
ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \
|
ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \
|
||||||
|
|
|
@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import imp
|
import importlib
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
@ -28,14 +28,14 @@ dest_file = os.environ.get("ODM_OPTIONS_TMP_FILE")
|
||||||
sys.path.append(sys.argv[2])
|
sys.path.append(sys.argv[2])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
imp.load_source('opendm', sys.argv[2] + '/opendm/__init__.py')
|
importlib.util.spec_from_file_location('opendm',sys.argv[2] + '/opendm/__init__.py').loader.load_module()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
imp.load_source('context', sys.argv[2] + '/opendm/context.py')
|
importlib.util.spec_from_file_location('context', sys.argv[2] + '/opendm/context.py').loader.load_module()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
odm = imp.load_source('config', sys.argv[2] + '/opendm/config.py')
|
odm = importlib.util.spec_from_file_location('config', sys.argv[2] + '/opendm/config.py').loader.load_module()
|
||||||
|
|
||||||
options = {}
|
options = {}
|
||||||
class ArgumentParserStub(argparse.ArgumentParser):
|
class ArgumentParserStub(argparse.ArgumentParser):
|
||||||
|
|
Ładowanie…
Reference in New Issue