summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-04-18 14:52:04 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-04-18 14:52:04 +0300
commit8bab7364fdbe24bb0f10a6a4147b84618e5e43e4 (patch)
tree57d6dde2a65c66c53fe8b6465f8282efffa1abaa
parent3edc3dccffae9e97550e398096a18f8a60e5dd77 (diff)
downloadpylint-8bab7364fdbe24bb0f10a6a4147b84618e5e43e4.tar.gz
Add logic for retrieving the HOME for Jython.
-rw-r--r--pylint/test/unittest_lint.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/pylint/test/unittest_lint.py b/pylint/test/unittest_lint.py
index b99605c..80c242f 100644
--- a/pylint/test/unittest_lint.py
+++ b/pylint/test/unittest_lint.py
@@ -36,10 +36,16 @@ from pylint.reporters import text, html
from pylint import checkers
from pylint import interfaces
-if sys.platform == 'win32':
- HOME = 'USERPROFILE'
+if os.name == 'java':
+ if os._name == 'nt':
+ HOME = 'USERPROFILE'
+ else:
+ HOME = 'HOME'
else:
- HOME = 'HOME'
+ if sys.platform == 'win32':
+ HOME = 'USERPROFILE'
+ else:
+ HOME = 'HOME'
def remove(file):
try: