Lines Matching refs:userDir
184 userDir = os.path.expanduser('~')
185 if userDir != '~': # expanduser() found user home dir
186 if not os.path.exists(userDir):
189 userDir + ',\n but the path does not exist.')
194 userDir = '~'
195 if userDir == "~": # still no path to home!
197 userDir = os.getcwd()
198 userDir = os.path.join(userDir, cfgDir)
199 if not os.path.exists(userDir):
201 os.mkdir(userDir)
205 userDir + '\n Check path and permissions.\n Exiting!\n')
212 return userDir