Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. importing a module in Idle shell
  2. os.chdir('/Users/xxx/Desktop/xyz')
  3.        
  4. from dfa import *
  5.        
  6. ImportError: No module named dfa
  7.        
  8. os.path.isfile('dfa.pyc')
  9.        
  10. sys.path.append('<newpath'>)
  11. from dfa import *