Skip to content

Commit 1905c9a

Browse files
variable name changes
1 parent 2b07194 commit 1905c9a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/jnpr/jsnapy/notify.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def notify(self, mail_file, hostname, password, test_obj):
3636
drive, tail = os.path.splitdrive(__file__)
3737
templateLoader = jinja2.FileSystemLoader(searchpath=[drive + "\\", "/"])
3838
templateEnv = jinja2.Environment(loader=templateLoader)
39-
TEMPLATE_FILE = posixpath.join(os.path.dirname(__file__), 'content.html')
40-
TEMPLATE_FILE = posixpath.join(*TEMPLATE_FILE.split('\\'))
41-
template = templateEnv.get_template(TEMPLATE_FILE)
39+
template_file = posixpath.join(os.path.dirname(__file__), 'content.html')
40+
template_file = posixpath.join(*template_file.split('\\'))
41+
template = templateEnv.get_template(template_file)
4242
outputText = template.render(device=hostname, name=mail_file['recipient_name'], tests=testdetails,
4343
date=time.ctime(),
4444
tpassed=test_obj.no_passed, tfailed=test_obj.no_failed,

setup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,25 +112,25 @@ def run(self):
112112
os_data_file = []
113113

114114
if hasattr(sys, 'real_prefix'):
115-
HOME = os.path.join(expanduser("~"),'.jsnapy')
116-
os_data_file = [(os.path.join(HOME, 'jsnapy'),
115+
home = os.path.join(expanduser("~"),'.jsnapy')
116+
os_data_file = [(os.path.join(home, 'jsnapy'),
117117
['lib/jnpr/jsnapy/logging.yml']),
118-
(os.path.join(HOME, 'logs/jsnapy'), log_files),
118+
(os.path.join(home, 'logs/jsnapy'), log_files),
119119
('samples', example_files),
120-
(os.path.join(HOME, 'jsnapy'),
120+
(os.path.join(home, 'jsnapy'),
121121
['lib/jnpr/jsnapy/jsnapy.cfg']),
122122
('testfiles', ['testfiles/README']),
123123
('snapshots', ['snapshots/README'])
124124
]
125125

126126

127127
elif 'win' in sys.platform:
128-
HOME = expanduser("~")
129-
os_data_file = [(os.path.join(HOME, 'jsnapy'),
128+
home = expanduser("~")
129+
os_data_file = [(os.path.join(home, 'jsnapy'),
130130
['lib/jnpr/jsnapy/logging.yml']),
131-
(os.path.join(HOME, 'logs\jsnapy'), log_files),
131+
(os.path.join(home, 'logs\jsnapy'), log_files),
132132
('samples', example_files),
133-
(os.path.join(HOME, 'jsnapy'),
133+
(os.path.join(home, 'jsnapy'),
134134
['lib/jnpr/jsnapy/jsnapy.cfg']),
135135
('testfiles', ['testfiles/README']),
136136
('snapshots', ['snapshots/README'])

0 commit comments

Comments
 (0)