Merge pull request #57 from codingo/permissions-bug-fix

Permissions bug fix
This commit is contained in:
Michael Skelton
2019-08-16 11:22:05 +10:00
committed by GitHub
2 changed files with 4 additions and 5 deletions

View File

@@ -1 +1 @@
__version__ = '1.5.3' __version__ = '1.5.4'

View File

@@ -102,10 +102,9 @@ class InputHelper(object):
final_commands = set() final_commands = set()
output = OutputHelper(arguments) output = OutputHelper(arguments)
# checking for whether output is writable and whether it exists # removing the trailing slash if any
if arguments.output: if arguments.output[-1] == "/":
if not access(arguments.output, W_OK): arguments.output = arguments.output[:-1]
raise Exception("Directory provided isn't writable")
if arguments.port: if arguments.port:
if "," in arguments.port: if "," in arguments.port: