I have a directory structure like this MyStuff
with an __init__.py
in it
However I want my package to be This.is.MyStuff
however I cannot actually move my code from the directory MyStuff
for various reasons.
Is there a way to tell python even though I am in the directory MyStuff
that the package I really am is This.is.MyStuff
?
=== Edit for clarity ===
My directory structure looks like this:
main/ (This is an aggregate repository)
├── plugins/
│ └── MyStuff (This is our repository)
│ ├── __init__.py
│ └── code.py
├── App/ (This is actually an external repository)
│ └── This
│ ├── __init__.py
│ ├── code.py
│ └── is
│ ├── __init__.py
│ ├── code.py
│ └── TheirStuff
│ ├── __init__.py
│ └── code.py
└── OtherStuff
I dont want to create new sub directories because will be disruptive across all of our branches and install processes. I know the most correct answer is change plugins to have a direcotry This/is/MyStuff but I dont want to do that. So I am looking for how to make the MyStuff Package be the This.is.MyStuff without moving every file.