szha closed pull request #9124: Removing the PYTHONPATH inserts from the
examples to avoid portabiliity issues.
URL: https://github.com/apache/incubator-mxnet/pull/9124
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/example/ctc/lstm.py b/example/ctc/lstm.py
index 326daa1d9f..eefa90a596 100644
--- a/example/ctc/lstm.py
+++ b/example/ctc/lstm.py
@@ -20,7 +20,6 @@
from mxnet.symbol_doc import SymbolDoc
-sys.path.insert(0, "../../python")
import mxnet as mx
import numpy as np
from collections import namedtuple
diff --git a/example/ctc/lstm_ocr.py b/example/ctc/lstm_ocr.py
index c9928aa43a..ce36ba015e 100644
--- a/example/ctc/lstm_ocr.py
+++ b/example/ctc/lstm_ocr.py
@@ -19,7 +19,7 @@
# pylint: disable=superfluous-parens, no-member, invalid-name
from __future__ import print_function
import sys, random
-sys.path.insert(0, "../../python")
+
import numpy as np
import mxnet as mx
diff --git a/example/ctc/ocr_predict.py b/example/ctc/ocr_predict.py
index 3096a664a2..68b7272cff 100644
--- a/example/ctc/ocr_predict.py
+++ b/example/ctc/ocr_predict.py
@@ -21,8 +21,6 @@
from __future__ import print_function
import sys, os
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
-sys.path.append("../../amalgamation/python/")
-sys.path.append("../../python/")
from mxnet_predict import Predictor
import mxnet as mx
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services