title: Correct syntax for import statement
body: <p>Newbie here</p>
  
  <p>I want to import a class from a file in another directory, in this case:
  <code>C:\Users\jose_\Desktop\my_ref\stack_class.py</code>, using the <code>from</code> - <code>import</code> statement. I have an <strong>init</strong>.py file in said directory but cannot find the right sintax anywhere.</p>
  
  <p>How do you put <code>C:\Users\jose_\Desktop\my_ref\stack_class.py</code> in the import part?</p>
  
  <p>I have tried using these other two ways:</p>
  
  <pre><code>exec(open("file path on windows").read())
  </code></pre>
  
  <p>and the import sys and sys.path.insert</p>
  
  <p>they both work, trying to do it with the import statement.</p>
  
  <pre><code>from C:\Users\jose_\Desktop\my_ref\stack_class.py import Stack #Error here
  foo = Stack()
  
  print(type(foo))
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>  File "C:/Users/jose_/OneDrive/Mis_Documentos/Educacion/Linkedin/Ex_Files_Python_Data_Structures_Queues/Exercise_Files/Ch02/02_02/End/main2.py", line 4
      from C:\Users\jose_\Desktop\my_ref\stack_class.py import Stack
            ^
  SyntaxError: invalid syntax
  </code></pre>