Skip to content

Commit c0b6b80

Browse files
committed
use path.join for filenames
1 parent 0206ee6 commit c0b6b80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jenkins_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def auth(cls, host=None, username=None, password=None, timeout=socket._GLOBAL_DE
4343
def read_settings_from_file(cls):
4444
try:
4545
current_folder = os.getcwd()
46-
filename = "%s/%s" % (current_folder, cls.SETTINGS_FILE_NAME)
46+
filename = os.path.join(current_folder, cls.SETTINGS_FILE_NAME)
4747
if not os.path.exists(filename):
4848
home_folder = os.path.expanduser("~")
49-
filename = "%s/%s" % (home_folder, cls.SETTINGS_FILE_NAME)
49+
filename = os.path.join(home_folder, cls.SETTINGS_FILE_NAME)
5050
if not os.path.exists(filename):
5151
raise CliException('.jenkins-cli file not found.')
5252
f = open(filename, 'r')

0 commit comments

Comments
 (0)