diff options
| author | Guido van Rossum <guido@python.org> | 2006-04-21 15:44:20 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2006-04-21 15:44:20 (GMT) |
| commit | 6da48561cb7844526164d3a656c6d16afe904e3d (patch) | |
| tree | 76b85ad3717da33ef7c6246807204b902a3ac920 /Lib/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py | |
| parent | c350d1a1106658d968badf2c35f5b10ddaa59a3e (diff) | |
| download | cpython-6da48561cb7844526164d3a656c6d16afe904e3d.zip cpython-6da48561cb7844526164d3a656c6d16afe904e3d.tar.gz cpython-6da48561cb7844526164d3a656c6d16afe904e3d.tar.bz2 | |
Fix test_scriptpackage with pure will power.
I really don't know why I bother; these are all generated files.
But I don't recall how to regenerate them nor how to fix the generator.
The hardest part was fixing two mutual recursive imports;
somehow changing "import foo" into "from . import foo" where
foo and bar import each other AND both are imported from __init__.py
caused things to break. Bah.
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py')
| -rw-r--r-- | Lib/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py index c2c7e5e..cb07a14 100644 --- a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py +++ b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py @@ -5,6 +5,11 @@ Generated from /System/Library/CoreServices/System Events.app AETE/AEUT resource version 1/0, language 0, script 0 """ +# Crutch for recursive import +import sys +import SystemEvents +SystemEvents.Folder_Actions_Suite = sys.modules[__name__] + import aetools import MacOS @@ -208,10 +213,11 @@ class _Prop_POSIX_path(aetools.NProperty): scripts = script application._superclassnames = [] -import Disk_Folder_File_Suite -import Standard_Suite -import Login_Items_Suite -import Processes_Suite +import sys +from . import Disk_Folder_File_Suite +from . import Standard_Suite +from . import Login_Items_Suite +from . import Processes_Suite application._privpropdict = { '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, 'folder_actions_enabled' : _Prop_folder_actions_enabled, |
