Skip to content

Commit

Permalink
Script to check users home directory, if the directory does not exist…
Browse files Browse the repository at this point in the history
… then create it under there
  • Loading branch information
geekcomputers committed Jan 17, 2012
1 parent 8675659 commit 7480882
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions create_dir_if_not_there.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import os
home=os.path.expanduser("~")
print home
if not os.path.exists(home+'/testdir'):
os.makedirs(home+'/testdir')

0 comments on commit 7480882

Please sign in to comment.