Skip to content

Commit 473e85e

Browse files
committed
tools/mpy-tool: Make work if run from another directory.
By making sure we don't add relative paths to sys.path.
1 parent db9c2e3 commit 473e85e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/mpy-tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import struct
4646
from collections import namedtuple
4747

48-
sys.path.append('../py')
48+
sys.path.append(sys.path[0] + '/../py')
4949
import makeqstrdata as qstrutil
5050

5151
class FreezeError(Exception):

0 commit comments

Comments
 (0)