Closed
Bug 784910
Opened 12 years ago
Closed 12 years ago
Pymake: adjust sys.path so that native commands can load other modules from their own directories
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla18
People
(Reporter: rain1, Assigned: rain1)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Python scripts often have import statements referring to modules in the same directory. That doesn't work if they're converted to native commands, though.
This fixes up sys.path during load_module. Note that this doesn't fix up sys.path during execution, so while static imports work, dynamic ones don't. I don't think that's an important case, though.
Assignee | ||
Updated•12 years ago
|
Attachment #654500 -
Attachment is patch: true
Attachment #654500 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 1•12 years ago
|
||
Fixed the comment in testmodule.py.
Attachment #654500 -
Attachment is obsolete: true
Attachment #654500 -
Flags: review?(ted.mielczarek)
Attachment #654501 -
Flags: review?(ted.mielczarek)
Comment 2•12 years ago
|
||
This seems pretty reasonable. The other thing I was thinking about was a way to make Pymake builds reinvoke Pymake using the in-tree virtualenv Python so that native commands could then import anything from the virtualenv. That might be a nicer long-term fix.
Updated•12 years ago
|
Attachment #654501 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 3•12 years ago
|
||
http://hg.mozilla.org/users/bsmedberg_mozilla.com/pymake/rev/672b826b079b
http://hg.mozilla.org/integration/mozilla-inbound/rev/f51b4777dbf8
Status: NEW → ASSIGNED
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•