Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. from os.path import join, expanduser
  2. user_path = expanduser('~')
  3. path_for_pyfiles = join(user_path, 'Google Drive', 'Modules')
  4. print path_for_pyfiles
  5. sys.path.insert(0, path_for_pyfiles)
  6.  
  7. user_path = environ['USERPROFILE']
  8.  
  9. import sys
  10. from os import path, environ
  11. user_path = environ['USERPROFILE']
  12. path_for_pyfiles = path.join(user_path, 'Google Drive', 'Shared Modules', '')
  13.  
  14. sys.path.insert(0, path_for_pyfiles)
  15.  
  16. from shared_module import *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement