creating package question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • erick_bodine@comcast.net

    #1

    creating package question

    I have a package directory structure as follows

    root-
    |
    Common (contains __init__.py file)
    WindowsComponen ts (contains __init__.py file)
    ...

    I would like modules in the WindowsComponen ts directory to be able to
    import some modules from the Common directory. In my first pass, I was
    able to append sys.path ( sys.path.append ('../Common') ) in each module
    that wants to import from Common, but this feels "clunky". Is there a
    "standard"/"best" way to accomplish this?

    --ERick

Working...