summaryrefslogtreecommitdiffstats
path: root/tester/rtems-tftp-server
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-09-25 11:22:34 +1000
committerChris Johns <chrisj@rtems.org>2020-09-26 10:49:27 +1000
commit87262b429d633420402e735a770f6d6cfedecf9a (patch)
tree6c9ee3464198f2d307b127d41060657565d2d34b /tester/rtems-tftp-server
parentlinkers: Update due to API changes (diff)
downloadrtems-tools-87262b429d633420402e735a770f6d6cfedecf9a.tar.bz2
Move all python commands to use env python
- If you host does not provide a python command consult the User manual for ways you can run the python commands. - Full package paths are being used to avoid namespace pollution and crosstalk.
Diffstat (limited to 'tester/rtems-tftp-server')
-rwxr-xr-xtester/rtems-tftp-server12
1 files changed, 5 insertions, 7 deletions
diff --git a/tester/rtems-tftp-server b/tester/rtems-tftp-server
index a3764ff..b255121 100755
--- a/tester/rtems-tftp-server
+++ b/tester/rtems-tftp-server
@@ -33,15 +33,13 @@ from __future__ import print_function
import os
import sys
-base = os.path.dirname(os.path.abspath(sys.argv[0]))
-prefix = os.path.dirname(base)
-rtems = os.path.join(prefix, 'share', 'rtems')
-tester = os.path.join(rtems, 'tester')
-sys.path = [prefix, rtems, tester] + sys.path
+base = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
+rtems = os.path.join(base, 'share', 'rtems')
+sys.path = sys.path[0:1] + [rtems, base] + sys.path[1:]
try:
- import rt.tftpserver
- rt.tftpserver.run(sys.argv)
+ import tester.rt.tftpserver
+ tester.rt.tftpserver.run(sys.argv)
except ImportError:
print("Incorrect RTEMS Tools installation", file=sys.stderr)
sys.exit(1)