mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Update setup.py
Don't use `+ '/' +` but `os.path.join` instead
This commit is contained in:
parent
61a4b9c866
commit
48ba0c14ed
4
setup.py
4
setup.py
@ -29,8 +29,8 @@ except ImportError:
|
||||
def file_list(path):
|
||||
files = []
|
||||
for filename in os.listdir(path):
|
||||
if os.path.isfile(path+'/'+filename):
|
||||
files.append(path+'/'+filename)
|
||||
if os.path.isfile(os.path.join(path, filename)):
|
||||
files.append(os.path.join(path, filename))
|
||||
return files
|
||||
|
||||
system = platform.system()
|
||||
|
Loading…
Reference in New Issue
Block a user