hello every one


i have a python file with two different classes

class threaded rotation
.....
.......
class optimizer
......
.....
i want to separate this two classes in to two different files optimizer.py and threaded rotation .py .... wat i want to do is import threaded rotation class in optimizer file to run the whole function when i tried to import the file i getting import error. and tried calling with os.system i got permission denied to access the file

can any one plssssss help meeeeee


thank u

threadedRotation.py

class threadedRotation :
    ....
    ....
    ....

optimizer.py

from threadedRotation import threadedRotation
class Optimizer :
    ....
    ....
    ....

tr = threadedRotation( ... )
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.