fix UI path with space

This commit is contained in:
j 2019-01-25 14:47:36 +05:30
parent b4c6f2b4ac
commit ebff5a8153
2 changed files with 3 additions and 2 deletions

2
ctl
View File

@ -187,7 +187,7 @@ fi
if [ "$1" == "ui" ]; then
shift
$PYTHON "$NAME/oml/ui.py" $@
$PYTHON "$NAME/oml/ui.py" "$@"
exit $?
fi
if [ "$1" == "init" ]; then

View File

@ -104,7 +104,8 @@ if __name__ == '__main__':
if len(sys.argv) >= 3:
base = sys.argv[2]
base = os.path.expanduser(base)
os.chdir(base)
if os.path.exists(base):
os.chdir(base)
if len(sys.argv) >= 2 and sys.argv[1] == 'folder':
print(ui.selectFolder({}))
else: