Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Commit d0a7b48

Browse files
author
Hugo Posca
committed
Change the order of the directories creation
just making the order in which the directories are created more coherent with what the code is doing. - Creating the 'lib' directory before the writing of a file in 'LIBRARY_PATH' - Creating the 'bin' directory before the writing of a file in 'SCRIPT_PATH' At the end of the day it doesn't matter so much, as usually, those directories already exist.
1 parent f8c649f commit d0a7b48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fix_dropbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737

3838
def main():
3939
# Install the library.
40-
os.makedirs(os.path.join(INSTALL_PATH, 'bin'), exist_ok=True)
40+
os.makedirs(os.path.join(INSTALL_PATH, 'lib'), exist_ok=True)
4141

4242
with open(LIBRARY_PATH, 'wb') as fd:
4343
fd.write(gzip.decompress(base64.b85decode(ENCODED_LIB_CONTENTS)))
4444
os.fchmod(fd.fileno(), 0o755)
4545

4646
# Install the wrapper script.
47-
os.makedirs(os.path.join(INSTALL_PATH, 'lib'), exist_ok=True)
47+
os.makedirs(os.path.join(INSTALL_PATH, 'bin'), exist_ok=True)
4848

4949
with open(SCRIPT_PATH, 'w') as fd:
5050
fd.write(DROPBOX_WRAPPER_CONTENTS)

0 commit comments

Comments
 (0)