diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-06-14 01:28:44 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-06-14 01:28:44 +0000 |
| commit | 4c58e9e0ef2cc1de12e7f813d843c4291f916ccc (patch) | |
| tree | 9802d627cbea3e2be1fdca1e0e8bc34dc285e650 /pkg_resources.py | |
| parent | 2c6ea3818dd9e63527e7e04c6352adc672c86e04 (diff) | |
| download | python-setuptools-git-4c58e9e0ef2cc1de12e7f813d843c4291f916ccc.tar.gz | |
Fix missing '__file__' when running scripts.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041058
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index e8e8ff7a..fa85113e 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -587,7 +587,7 @@ class NullProvider: script_text = self.get_metadata(script).replace('\r\n','\n') script_text = script_text.replace('\r','\n') script_filename = self._fn(self.egg_info,script) - + namespace['__file__'] = script_filename if os.path.exists(script_filename): execfile(script_filename, namespace, namespace) else: |
