1

I'm trying to import a class in another python class in my pynecone project. It's giving me error.

import Constants ---> Giving error 

ModuleNotFoundError: No module named 'Constants'

Edit: Folder structure:

enter image description here

From helloworld.py, I'm trying to import Constants. How can this be done?

Ratan
  • 1,747
  • 2
  • 18
  • 27

1 Answers1

3

The way it's being imported within the library is

from pynecone import constants
tim the fiend
  • 179
  • 1
  • 1
  • 9