Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Distutils: blurring the file==module borders

Thread Tools

Distutils: blurring the file==module borders

Frans Englich
Posts: n/a

Hello all,

Due to the size of my source, I want to split it up into multiple
files(basically one class in each file), but then I have difficulties with
the directory layout when the modules are installed with distutils.

This is my file layout:

in ./ I have a which has 'packages="foo"'

in ./foo/ I have an and a handful of files named,, and so forth.

The problem is that when installed, in order to reach, say, classB, I need to

import foo.ClassA

var = foo.ClassA.ClassA()

while I want to do var = foo.ClassA()

In other words, the result I want can be achieved by putting all code in The problem is that I would find it horrible to have all code in
one file.

Python have this one-to-one relationship between modules and files; can what I
want somehow be achieved?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fujifilm Finepix novice question about blurring in low-light conditions Loupo Digital Photography 2 06-02-2006 10:16 AM
Longest exposure possible for the moon without blurring? badchess Digital Photography 11 08-05-2005 07:26 PM
Oly c-725 superzoom constant blurring and other probs Paul Heslop Digital Photography 4 07-06-2005 09:22 AM
Tables with different color left and right borders, no top or bottom borders, etc. George HTML 9 10-25-2004 04:25 PM
Canon Rebel telephoto recommendation for portrait blurring Jeff Durham Digital Photography 13 06-19-2004 03:25 PM