Script for a project inside own directory

2009-03-22 Thread Filip Gruszczyński
I am having a project built like this: project module1.py module2.py packages1/ module3.py etc. I have script that uses objects from those modules/packages. If I keep this script inside project directory it's ok and it works. But I would like to move it to own scripts directory

Re: Script for a project inside own directory

2009-03-22 Thread Maxim Khitrov
2009/3/22 Filip Gruszczyński grusz...@gmail.com: I am having a project built like this: project   module1.py   module2.py   packages1/     module3.py etc. I have script that uses objects from those modules/packages. If I keep this script inside project directory it's ok and it works.

Script for a project inside own directory

2009-03-22 Thread R. David Murray
=?UTF-8?Q?Filip_Gruszczy=C5=84ski?= grusz...@gmail.com wrote: I am having a project built like this: project module1.py module2.py packages1/ module3.py etc. I have script that uses objects from those modules/packages. If I keep this script inside project directory

Re: Script for a project inside own directory

2009-03-22 Thread Benjamin Peterson
Filip Gruszczyński gruszczy at gmail.com writes: I would like to ask if there is any workaround? Use the runpy module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Script for a project inside own directory

2009-03-22 Thread Filip Gruszczyński
Works great. Thanks a lot. 2009/3/22 Maxim Khitrov mkhit...@gmail.com: 2009/3/22 Filip Gruszczyński grusz...@gmail.com: I am having a project built like this: project   module1.py   module2.py   packages1/     module3.py etc. I have script that uses objects from those