# How to place packages in a different directory?

**URL:** <https://forum.kirupa.com/t/how-to-place-packages-in-a-different-directory/244731>\
**Category:** flash\
**Created:** [November 21, 2007, 8:36am UTC](https://forum.kirupa.com/t/how-to-place-packages-in-a-different-directory/244731 "2007-11-21T08:36:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raal](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@raal](https://forum.kirupa.com/u/raal)\
**Post date:** [November 21, 2007, 8:36am UTC](https://forum.kirupa.com/t/how-to-place-packages-in-a-different-directory/244731/1 "2007-11-21T08:36:21Z")

</div>

I’m sorry if this is common knowledge, but I have searched around without finding an answer.

If I have a custom package, say “common.Utility”, I have to place this in a subdirectory of my project to be able to import it. This is inconvenient if you have a library of common classes that you use in many different projects.

I want to make a directory structure that looks something like this:

\code\project1  
\code\project2  
\code\projectX  
\code\common\utility

and “import common.utillity” from all the projects.

The only solution i have found is to copy the “common” directory under each project, which is horrible.

So, what am I missing?

raal
