Subject: Notrium Mod Viewer
"Amarth" said:
PS: And about this different direction: is there anyone good with Python? Yes. I'm just starting to learn it. Currently translating this:[attachment=0]<!-- ia0 -->TheProject.rar<!-- ia0 -->[/attachment] to Python, and then will be expanding it further.
Here's the question.
If I write something like this: Creature.py:
from Player import *
class Creature: ... if isinstance(this,Player): ...
Player.py:
from Creature import *
class Player(Creature): ...
It gives a error in Creature.py, saying: "Wassafuck is Player?"
if I replace "from Player import *" with "from Player import Player", it says: "Cannot import Player"
but if I write "import Player" and "if isinstance(this,Player.Player):", THEN it works.
I guess no workaround here?
|