File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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' ]):
You can’t perform that action at this time.
0 commit comments