Your problem is basically that you never specified the right path to the file.
Try instead, from your main script:
from folder.file import Klasa
Or, with from folder import file
:
from folder import file
k = file.Klasa()
Or again:
import folder.file as myModule
k = myModule.Klasa()
More Related Contents:
- Is doing multiplication multiple times or assigning to a variable faster?
- How do I create a scoring system in Python? [closed]
- How to end a python program without it going to the next line of code [duplicate]
- Unable to use convert strings into integers for a for loop
- What is an alternative to execfile in Python 3?
- Behavior of exec function in Python 2 and Python 3
- Remove and Replace Printed items [duplicate]
- Why does on_message stop commands from working?
- jumping too fast?
- How to get local variables updated, when using the `exec` call?
- How do I create animated sprites using Sprite Sheets in Pygame?
- How do I bind the enter key to a function in tkinter?
- Transform a set of numbers in numpy so that each number gets converted into a number of other numbers which are less than it
- How to activate virtualenv in Linux?
- filedialog, tkinter and opening files
- How to use cmp() in Python 3?
- Exclude type in Python typing annotation
- Make python3 as my default python on Mac
- Combine awaitables like Promise.all
- Discord Bot can only see itself and no other users in guild
- Creating dynamically named variables in a function in python 3 / Understanding exec / eval / locals in python 3
- __init__() missing 1 required positional argument
- How can I more easily suppress previous exceptions when I raise my own exception in response?
- How to move a sprite according to an angle in Pygame
- List comprehension returning values plus [None, None, None], why? [duplicate]
- “TypeError: a bytes-like object is required, not ‘str'” when handling file content in Python 3
- SyntaxError on “self.async” when running python kafka producer
- What SOAP libraries exist for Python 3.x? [closed]
- Weird MRO result when inheriting directly from typing.NamedTuple
- How do I resize buttons in pixels? (Tkinter)