Skip to content

Commit 310d87e

Browse files
author
server
committed
Set path relative to argv[0].
1 parent cad2d78 commit 310d87e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

umlsequence2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env python3
2+
import os.path
23
import sys
3-
sys.path.append('src')
4-
sys.path.append('../src')
4+
5+
home = os.path.split(sys.argv[0])[0]
6+
sys.path.append(os.path.join(home, 'src'))
57

68
if __name__ == "__main__":
79
from src.umlsequence2.run import main

0 commit comments

Comments
 (0)