fix UI path with space
This commit is contained in:
parent
b4c6f2b4ac
commit
ebff5a8153
2 changed files with 3 additions and 2 deletions
2
ctl
2
ctl
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue