Re: installing PythonCard on Mac OS X Leopard, Snow Leopard, Lion, etc.
Kevin Altis <[email protected]> Sat, 9 Jun 2012 12:28:44 -0700
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
--===============6827213629887914628==
Content-Type: multipart/alternative; boundary=Apple-Mail-1-185671627
--Apple-Mail-1-185671627
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Make sure that the line
return not =
(sys.executable.endswith('Resources/Python.app/Contents/MacOS/Python'))
does not contain any spaces, etc. in the string
'Resources/Python.app/Contents/MacOS/Python'
I just realized that somewhere in the process of posting to the list the =
code got corrupted.
ka
On Jun 2, 2012, at 2:52 PM, Kevin Altis wrote:
def main_is_frozen():
if sys.platform =3D=3D 'darwin':
# this is a temporary hack for bundlebuilder
return not =
(sys.executable.endswith('Resources/Python.app/Contents/MacOS/Python'))
else:
return (hasattr(sys, "frozen") or # new py2exe, McMillan
hasattr(sys, "importers") # old py2exe
or imp.is_frozen("__main__")) # tools/freeze, cx_freeze
--Apple-Mail-1-185671627
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Make =
sure that the line<div><font class=3D"Apple-style-span" =
face=3D"monospace"><br></font></div><div><font class=3D"Apple-style-span" =
face=3D"monospace"> return not =
(sys.executable.endswith('Resources/Python.app/Contents/MacOS/Python'))<br=
></font><div><div><br></div><div>does not contain any spaces, etc. in =
the =
string</div><div>'Resources/Python.app/Contents/MacOS/Python'</div><div><b=
r></div><div>I just realized that somewhere in the process of posting to =
the list the code got =
corrupted.</div><div><br></div><div>ka</div><div><br></div><div>On Jun =
2, 2012, at 2:52 PM, Kevin Altis wrote:</div><br =
class=3D"Apple-interchange-newline"><span class=3D"Apple-style-span" =
style=3D"font-family: monospace; ">def =
main_is_frozen():<br> if sys.platform =3D=3D =
'darwin':<br> # this is a =
temporary hack for =
bundlebuilder<br> return not =
(sys.executable.endswith('Resources/Python.app/Contents/MacOS/Python'))<br=
> else:<br> retu=
rn (hasattr(sys, "frozen") or # new py2exe, =
McMillan<br> &n=
bsp; hasattr(sys, "importers") # old =
py2exe<br> &nbs=
p; or imp.is_frozen("__main__")) # tools/freeze, =
cx_freeze<br><br></span></div><br></div></body></html>=
--Apple-Mail-1-185671627--
--===============6827213629887914628==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============6827213629887914628==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Pythoncard-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
--===============6827213629887914628==--