Changeset - a2fd5fca23a0
[Not reviewed]
0 1 0
Lance Edgar (lance) - 4 years ago 2020-10-06 22:24:33
lance@edbob.org
Stop creating separate 'batch' folder for `rattail make-appdir`

that needs to exist underneath 'data' folder instead
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/commands/core.py
Show inline comments
 
@@ -1001,13 +1001,13 @@ class MakeAppDir(Subcommand):
 
        if not os.path.exists(app_path):
 
            os.mkdir(app_path)
 

	
 
        if args.user:
 
            import pwd
 
            pwdata = pwd.getpwnam(args.user)
 
        for name in ['batch', 'data', 'log', 'sessions', 'work']:
 
        for name in ['data', 'log', 'sessions', 'work']:
 
            path = os.path.join(app_path, name)
 
            if not os.path.exists(path):
 
                os.mkdir(path)
 
            if args.user:
 
                os.chown(path, pwdata.pw_uid, pwdata.pw_gid)
 

	
0 comments (0 inline, 0 general)