summaryrefslogtreecommitdiff
path: root/scripts/scriptmgr.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scriptmgr.py')
-rwxr-xr-xscripts/scriptmgr.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/scriptmgr.py b/scripts/scriptmgr.py
index 6aa82c78..57fd7a46 100755
--- a/scripts/scriptmgr.py
+++ b/scripts/scriptmgr.py
@@ -83,7 +83,12 @@ def full_path(job, fn):
if not fn:
return fn
if fn[0] == '~':
- user, rest = fn.split('/',1)[0]
+ if fn.find('/') > 0:
+ user, rest = fn.split('/',1)
+ else:
+ user = fn
+ rest = ''
+
user = user[1:]
if not user:
user = job['user']