Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 14155:1ac6195ee586
mx: use os.sep
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Wed, 12 Mar 2014 11:45:15 +0100 |
parents | e666c172c9aa |
children | 7668297a2e67 |
comparison
equal
deleted
inserted
replaced
14154:e666c172c9aa | 14155:1ac6195ee586 |
---|---|
1467 def _send_sigquit(): | 1467 def _send_sigquit(): |
1468 p, args = _currentSubprocess | 1468 p, args = _currentSubprocess |
1469 | 1469 |
1470 def _isJava(): | 1470 def _isJava(): |
1471 if args: | 1471 if args: |
1472 name = args[0].split("/")[-1] | 1472 name = args[0].split(os.sep)[-1] |
1473 return name == "java" | 1473 return name == "java" |
1474 return False | 1474 return False |
1475 | 1475 |
1476 if p is not None and _isJava(): | 1476 if p is not None and _isJava(): |
1477 if get_os() == 'windows': | 1477 if get_os() == 'windows': |