Skip to content

Commit 8e8e77d

Browse files
committed
Minor printout tweaks.
1 parent caff647 commit 8e8e77d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def main(args):
643643
f.write(projectfile_content)
644644
print('Projectfile created. Use the "p" command to invoke the manual.')
645645
else:
646-
print('\n You are not inside any of your projects. Use the "p" command to navigate into one.')
646+
print('You are not inside any of your projects. Use the "p" command to navigate into one.')
647647
return
648648

649649
elif args[0] in ['-h', '--help']:
@@ -711,6 +711,8 @@ def main(args):
711711
else:
712712
if not os.listdir(conf['projects-path']):
713713
print("Your projects directory is empty. Nothing to do..")
714+
with open(os.path.join(os.path.expanduser('~'), '.p-path'), 'w+') as f:
715+
f.write(conf['projects-path'])
714716
return
715717

716718
if paths.inside_project(conf['projects-path']):

0 commit comments

Comments
 (0)