Skip to content

Commit

Permalink
'\' char messing with directory string creation on windows (cyberduck)
Browse files Browse the repository at this point in the history
With the back slash, the 'directory' var is wrongly initialized to 'C:\Cyberduck'.
Tested under windows 7 and windows 10
  • Loading branch information
smandon committed Dec 28, 2017
1 parent 38ca1f5 commit e6b4ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Windows/lazagne/softwares/sysadmin/cyberduck.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self):

# find the user.config file containing passwords
def get_application_path(self):
directory = os.path.join(constant.profile['APPDATA'], u'\Cyberduck')
directory = os.path.join(constant.profile['APPDATA'], u'Cyberduck')
if os.path.exists(directory):
for dr in os.listdir(directory):
if dr.startswith(u'Cyberduck'):
Expand Down

0 comments on commit e6b4ce5

Please sign in to comment.