Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/olpcgames/util.pyc
blob: dd8c337ed74ed8df53b9a9c73523f3c90b13e8ef (plain)
ofshex dumpascii
0000 03 f3 0d 0a 62 e7 f4 4d 63 00 00 00 00 00 00 00 00 05 00 00 00 40 00 00 00 73 c6 00 00 00 64 00 ....b..Mc............@...s....d.
0020 00 5a 00 00 64 01 00 64 02 00 6c 01 00 5a 01 00 64 01 00 64 02 00 6c 02 00 5a 02 00 64 01 00 64 .Z..d..d..l..Z..d..d..l..Z..d..d
0040 02 00 6c 03 00 5a 03 00 65 03 00 6a 04 00 64 03 00 83 01 00 5a 05 00 64 01 00 64 02 00 6c 06 00 ..l..Z..e..j..d.....Z..d..d..l..
0060 5a 06 00 64 01 00 64 02 00 6c 07 00 5a 06 00 64 04 00 5a 08 00 79 1d 00 64 01 00 64 05 00 6c 09 Z..d..d..l..Z..d..Z..y..d..d..l.
0080 00 6d 0a 00 5a 0b 00 01 64 06 00 84 00 00 5a 0a 00 57 6e 27 00 04 65 0c 00 6b 0a 00 72 9d 00 01 .m..Z...d.....Z..Wn'..e..k..r...
00a0 01 01 65 05 00 6a 0d 00 64 07 00 83 01 00 01 64 08 00 84 00 00 5a 0a 00 6e 01 00 58 64 09 00 84 ..e..j..d......d.....Z..n..Xd...
00c0 00 00 5a 0e 00 64 0a 00 84 00 00 5a 0f 00 64 0b 00 84 00 00 5a 10 00 64 0c 00 84 00 00 5a 11 00 ..Z..d.....Z..d.....Z..d.....Z..
00e0 64 02 00 53 28 0d 00 00 00 73 3b 00 00 00 41 62 73 74 72 61 63 74 69 6f 6e 20 6c 61 79 65 72 20 d..S(....s;...Abstraction.layer.
0100 66 6f 72 20 77 6f 72 6b 69 6e 67 20 6f 75 74 73 69 64 65 20 74 68 65 20 53 75 67 61 72 20 65 6e for.working.outside.the.Sugar.en
0120 76 69 72 6f 6e 6d 65 6e 74 69 ff ff ff ff 4e 73 0e 00 00 00 6f 6c 70 63 67 61 6d 65 73 2e 75 74 vironmenti....Ns....olpcgames.ut
0140 69 6c 73 1a 00 00 00 7e 2f 2e 73 75 67 61 72 2f 64 65 66 61 75 6c 74 2f 6f 6c 70 63 67 61 6d 65 ils....~/.sugar/default/olpcgame
0160 73 28 01 00 00 00 74 0f 00 00 00 67 65 74 5f 62 75 6e 64 6c 65 5f 70 61 74 68 63 00 00 00 00 01 s(....t....get_bundle_pathc.....
0180 00 00 00 03 00 00 00 43 00 00 00 73 39 00 00 00 74 00 00 83 00 00 7d 00 00 7c 00 00 6a 01 00 64 .......C...s9...t.....}..|..j..d
01a0 01 00 83 01 00 72 35 00 74 02 00 6a 03 00 64 02 00 7c 00 00 83 02 00 01 7c 00 00 64 03 00 20 7d .....r5.t..j..d..|......|..d...}
01c0 00 00 6e 00 00 7c 00 00 53 28 04 00 00 00 73 46 00 00 00 52 65 74 72 69 65 76 65 20 62 75 6e 64 ..n..|..S(....sF...Retrieve.bund
01e0 6c 65 20 70 61 74 68 20 66 72 6f 6d 20 61 63 74 69 76 69 74 79 20 77 69 74 68 20 66 69 78 20 66 le.path.from.activity.with.fix.f
0200 6f 72 20 73 69 6c 6c 79 20 72 65 67 69 73 74 72 61 74 69 6f 6e 20 62 75 67 73 12 00 00 00 2e 61 or.silly.registration.bugs.....a
0220 63 74 69 76 69 74 79 2e 61 63 74 69 76 69 74 79 73 3c 00 00 00 46 6f 75 6e 64 20 64 6f 75 62 6c ctivity.activitys<...Found.doubl
0240 65 20 2e 61 63 74 69 76 69 74 79 20 73 75 66 66 69 78 20 69 6e 20 62 75 6e 64 6c 65 20 70 61 74 e..activity.suffix.in.bundle.pat
0260 68 2c 20 74 72 75 6e 63 61 74 69 6e 67 3a 20 25 73 69 f7 ff ff ff 28 04 00 00 00 74 10 00 00 00 h,.truncating:.%si....(....t....
0280 5f 67 65 74 5f 62 75 6e 64 6c 65 5f 70 61 74 68 74 08 00 00 00 65 6e 64 73 77 69 74 68 74 03 00 _get_bundle_patht....endswitht..
02a0 00 00 6c 6f 67 74 04 00 00 00 77 61 72 6e 28 01 00 00 00 74 04 00 00 00 70 61 74 68 28 00 00 00 ..logt....warn(....t....path(...
02c0 00 28 00 00 00 00 73 42 00 00 00 2f 68 6f 6d 65 2f 79 61 64 65 72 2f 41 63 74 69 76 69 74 69 65 .(....sB.../home/yader/Activitie
02e0 73 2f 43 6f 6e 6f 7a 63 6f 4e 69 63 61 72 61 67 75 61 2e 61 63 74 69 76 69 74 79 2f 6f 6c 70 63 s/ConozcoNicaragua.activity/olpc
0300 67 61 6d 65 73 2f 75 74 69 6c 2e 70 79 52 00 00 00 00 0c 00 00 00 73 0a 00 00 00 00 02 09 01 0f games/util.pyR........s.........
0320 01 10 01 0d 01 73 44 00 00 00 44 6f 20 6e 6f 74 20 61 70 70 65 61 72 20 74 6f 20 62 65 20 72 75 .....sD...Do.not.appear.to.be.ru
0340 6e 6e 69 6e 67 20 75 6e 64 65 72 20 53 75 67 61 72 2c 20 73 74 75 62 62 69 6e 67 2d 69 6e 20 67 nning.under.Sugar,.stubbing-in.g
0360 65 74 5f 62 75 6e 64 6c 65 5f 70 61 74 68 63 00 00 00 00 00 00 00 00 01 00 00 00 43 00 00 00 73 et_bundle_pathc............C...s
0380 0a 00 00 00 74 00 00 6a 01 00 83 00 00 53 28 01 00 00 00 73 34 00 00 00 52 65 74 72 69 65 76 65 ....t..j.....S(....s4...Retrieve
03a0 20 61 20 73 75 62 73 74 69 74 75 74 65 20 64 61 74 61 2d 70 61 74 68 20 66 6f 72 20 6e 6f 6e 20 .a.substitute.data-path.for.non.
03c0 4f 4c 50 43 20 73 79 73 74 65 6d 73 28 02 00 00 00 74 02 00 00 00 6f 73 74 06 00 00 00 67 65 74 OLPC.systems(....t....ost....get
03e0 63 77 64 28 00 00 00 00 28 00 00 00 00 28 00 00 00 00 73 42 00 00 00 2f 68 6f 6d 65 2f 79 61 64 cwd(....(....(....sB.../home/yad
0400 65 72 2f 41 63 74 69 76 69 74 69 65 73 2f 43 6f 6e 6f 7a 63 6f 4e 69 63 61 72 61 67 75 61 2e 61 er/Activities/ConozcoNicaragua.a
0420 63 74 69 76 69 74 79 2f 6f 6c 70 63 67 61 6d 65 73 2f 75 74 69 6c 2e 70 79 52 00 00 00 00 15 00 ctivity/olpcgames/util.pyR......
0440 00 00 73 02 00 00 00 00 02 63 00 00 00 00 01 00 00 00 02 00 00 00 43 00 00 00 73 36 00 00 00 64 ..s......c............C...s6...d
0460 01 00 64 02 00 6c 00 00 7d 00 00 7c 00 00 6a 01 00 72 22 00 7c 00 00 6a 01 00 6a 02 00 83 00 00 ..d..l..}..|..j..r".|..j..j.....
0480 53 74 03 00 6a 04 00 6a 05 00 74 06 00 83 01 00 53 64 02 00 53 28 03 00 00 00 73 ae 00 00 00 52 St..j..j..t.....Sd..S(....s....R
04a0 65 74 75 72 6e 20 74 68 65 20 61 63 74 69 76 69 74 79 20 72 6f 6f 74 20 66 6f 72 20 64 61 74 61 eturn.the.activity.root.for.data
04c0 20 73 74 6f 72 61 67 65 20 6f 70 65 72 61 74 69 6f 6e 73 0a 0a 20 20 20 20 49 66 20 74 68 65 20 .storage.operations......If.the.
04e0 61 63 74 69 76 69 74 79 20 69 73 20 70 72 65 73 65 6e 74 2c 20 72 65 74 75 72 6e 73 20 74 68 65 activity.is.present,.returns.the
0500 20 61 63 74 69 76 69 74 79 27 73 20 72 6f 6f 74 2c 0a 20 20 20 20 6f 74 68 65 72 77 69 73 65 20 .activity's.root,.....otherwise.
0520 72 65 74 75 72 6e 73 20 4e 4f 4e 5f 53 55 47 41 52 5f 52 4f 4f 54 20 61 73 20 74 68 65 20 64 69 returns.NON_SUGAR_ROOT.as.the.di
0540 72 65 63 74 6f 72 79 2e 0a 20 20 20 20 69 ff ff ff ff 4e 28 07 00 00 00 74 09 00 00 00 6f 6c 70 rectory......i....N(....t....olp
0560 63 67 61 6d 65 73 74 08 00 00 00 41 43 54 49 56 49 54 59 74 11 00 00 00 67 65 74 5f 61 63 74 69 cgamest....ACTIVITYt....get_acti
0580 76 69 74 79 5f 72 6f 6f 74 52 06 00 00 00 52 05 00 00 00 74 0a 00 00 00 65 78 70 61 6e 64 75 73 vity_rootR....R....t....expandus
05a0 65 72 74 0e 00 00 00 4e 4f 4e 5f 53 55 47 41 52 5f 52 4f 4f 54 28 01 00 00 00 52 08 00 00 00 28 ert....NON_SUGAR_ROOT(....R....(
05c0 00 00 00 00 28 00 00 00 00 73 42 00 00 00 2f 68 6f 6d 65 2f 79 61 64 65 72 2f 41 63 74 69 76 69 ....(....sB.../home/yader/Activi
05e0 74 69 65 73 2f 43 6f 6e 6f 7a 63 6f 4e 69 63 61 72 61 67 75 61 2e 61 63 74 69 76 69 74 79 2f 6f ties/ConozcoNicaragua.activity/o
0600 6c 70 63 67 61 6d 65 73 2f 75 74 69 6c 2e 70 79 52 0a 00 00 00 1a 00 00 00 73 08 00 00 00 00 06 lpcgames/util.pyR........s......
0620 0c 01 09 01 0d 02 63 01 00 00 00 01 00 00 00 04 00 00 00 43 00 00 00 73 19 00 00 00 74 00 00 6a ......c............C...s....t..j
0640 01 00 6a 02 00 74 03 00 83 00 00 64 01 00 7c 00 00 83 03 00 53 28 02 00 00 00 73 46 00 00 00 52 ..j..t.....d..|.....S(....sF...R
0660 65 74 75 72 6e 20 74 68 65 20 66 75 6c 6c 20 70 61 74 68 20 74 6f 20 61 20 66 69 6c 65 20 69 6e eturn.the.full.path.to.a.file.in
0680 20 74 68 65 20 64 61 74 61 20 73 75 62 2d 64 69 72 65 63 74 6f 72 79 20 6f 66 20 74 68 65 20 62 .the.data.sub-directory.of.the.b
06a0 75 6e 64 6c 65 74 04 00 00 00 64 61 74 61 28 04 00 00 00 52 06 00 00 00 52 05 00 00 00 74 04 00 undlet....data(....R....R....t..
06c0 00 00 6a 6f 69 6e 52 00 00 00 00 28 01 00 00 00 74 09 00 00 00 66 69 6c 65 5f 6e 61 6d 65 28 00 ..joinR....(....t....file_name(.
06e0 00 00 00 28 00 00 00 00 73 42 00 00 00 2f 68 6f 6d 65 2f 79 61 64 65 72 2f 41 63 74 69 76 69 74 ...(....sB.../home/yader/Activit
0700 69 65 73 2f 43 6f 6e 6f 7a 63 6f 4e 69 63 61 72 61 67 75 61 2e 61 63 74 69 76 69 74 79 2f 6f 6c ies/ConozcoNicaragua.activity/ol
0720 70 63 67 61 6d 65 73 2f 75 74 69 6c 2e 70 79 74 09 00 00 00 64 61 74 61 5f 70 61 74 68 26 00 00 pcgames/util.pyt....data_path&..
0740 00 73 02 00 00 00 00 02 63 01 00 00 00 01 00 00 00 04 00 00 00 43 00 00 00 73 19 00 00 00 74 00 .s......c............C...s....t.
0760 00 6a 01 00 6a 02 00 74 03 00 83 00 00 64 01 00 7c 00 00 83 03 00 53 28 02 00 00 00 73 39 00 00 .j..j..t.....d..|.....S(....s9..
0780 00 52 65 74 75 72 6e 20 74 68 65 20 66 75 6c 6c 20 70 61 74 68 20 74 6f 20 61 20 66 69 6c 65 20 .Return.the.full.path.to.a.file.
07a0 69 6e 20 74 68 65 20 74 65 6d 70 6f 72 61 72 79 20 64 69 72 65 63 74 6f 72 79 74 03 00 00 00 74 in.the.temporary.directoryt....t
07c0 6d 70 28 04 00 00 00 52 06 00 00 00 52 05 00 00 00 52 0e 00 00 00 52 0a 00 00 00 28 01 00 00 00 mp(....R....R....R....R....(....
07e0 52 0f 00 00 00 28 00 00 00 00 28 00 00 00 00 73 42 00 00 00 2f 68 6f 6d 65 2f 79 61 64 65 72 2f R....(....(....sB.../home/yader/
0800 41 63 74 69 76 69 74 69 65 73 2f 43 6f 6e 6f 7a 63 6f 4e 69 63 61 72 61 67 75 61 2e 61 63 74 69 Activities/ConozcoNicaragua.acti
0820 76 69 74 79 2f 6f 6c 70 63 67 61 6d 65 73 2f 75 74 69 6c 2e 70 79 74 08 00 00 00 74 6d 70 5f 70 vity/olpcgames/util.pyt....tmp_p
0840 61 74 68 29 00 00 00 73 02 00 00 00 00 02 63 01 00 00 00 07 00 00 00 07 00 00 00 43 00 00 00 73 ath)...s......c............C...s
0860 f0 00 00 00 7c 00 00 64 09 00 6b 08 00 72 9c 00 67 00 00 7d 00 00 78 7a 00 74 01 00 6a 02 00 83 ....|..d..k..r..g..}..xz.t..j...
0880 00 00 64 01 00 20 44 5d 68 00 5c 04 00 7d 01 00 7d 02 00 7d 03 00 7d 04 00 7c 04 00 72 4b 00 64 ..d...D]h.\..}..}..}..}..|..rK.d
08a0 02 00 7c 04 00 66 01 00 16 7d 04 00 6e 00 00 7c 03 00 72 71 00 7c 00 00 6a 03 00 64 03 00 7c 01 ..|..f...}..n..|..rq.|..j..d..|.
08c0 00 7c 03 00 7c 02 00 7c 04 00 66 04 00 16 83 01 00 01 71 23 00 7c 00 00 6a 03 00 64 04 00 7c 01 .|..|..|..f.......q#.|..j..d..|.
08e0 00 7c 02 00 7c 04 00 66 03 00 16 83 01 00 01 71 23 00 57 64 05 00 6a 04 00 7c 00 00 83 01 00 53 .|..|..f.......q#.Wd..j..|.....S
0900 74 05 00 7c 00 00 83 01 00 7d 05 00 74 06 00 6a 07 00 83 00 00 7d 06 00 7a 26 00 74 01 00 6a 08 t..|.....}..t..j.....}..z&.t..j.
0920 00 64 06 00 64 07 00 64 08 00 7c 06 00 83 00 02 01 7c 06 00 6a 09 00 83 00 00 7d 05 00 57 64 09 .d..d..d..|......|..j.....}..Wd.
0940 00 7c 06 00 6a 0a 00 83 00 00 01 58 7c 05 00 53 64 09 00 53 28 0a 00 00 00 73 92 01 00 00 47 65 .|..j......X|..Sd..S(....s....Ge
0960 74 20 66 6f 72 6d 61 74 74 65 64 20 74 72 61 63 65 62 61 63 6b 20 66 72 6f 6d 20 63 75 72 72 65 t.formatted.traceback.from.curre
0980 6e 74 20 65 78 63 65 70 74 69 6f 6e 0a 20 20 20 20 0a 20 20 20 20 65 72 72 6f 72 20 2d 2d 20 45 nt.exception..........error.--.E
09a0 78 63 65 70 74 69 6f 6e 20 69 6e 73 74 61 6e 63 65 20 72 61 69 73 65 64 0a 20 20 20 20 0a 20 20 xception.instance.raised........
09c0 20 20 41 74 74 65 6d 70 74 73 20 74 6f 20 70 72 6f 64 75 63 65 20 61 20 31 30 2d 6c 65 76 65 6c ..Attempts.to.produce.a.10-level
09e0 20 74 72 61 63 65 62 61 63 6b 20 61 73 20 61 20 73 74 72 69 6e 67 0a 20 20 20 20 74 68 61 74 20 .traceback.as.a.string.....that.
0a00 79 6f 75 20 63 61 6e 20 6c 6f 67 20 6f 66 66 2e 20 20 55 73 65 20 6c 69 6b 65 20 73 6f 3a 0a 20 you.can.log.off...Use.like.so:..
0a20 20 20 20 0a 20 20 20 20 74 72 79 3a 0a 20 20 20 20 20 20 20 20 64 6f 53 6f 6d 65 74 68 69 6e 67 ........try:.........doSomething
0a40 28 29 0a 20 20 20 20 65 78 63 65 70 74 20 45 78 63 65 70 74 69 6f 6e 2c 20 65 72 72 3a 0a 20 20 ().....except.Exception,.err:...
0a60 20 20 20 20 20 20 6c 6f 67 2e 65 72 72 6f 72 28 20 0a 20 20 20 20 20 20 20 20 20 20 20 20 27 27 ......log.error(..............''
0a80 27 46 61 69 6c 75 72 65 20 64 75 72 69 6e 67 20 64 6f 53 6f 6d 65 74 68 69 6e 67 20 77 69 74 68 'Failure.during.doSomething.with
0aa0 20 58 2c 59 2c 5a 20 70 61 72 61 6d 65 74 65 72 73 3a 20 25 73 27 27 27 2c 20 0a 20 20 20 20 20 .X,Y,Z.parameters:.%s''',.......
0ac0 20 20 20 20 20 20 20 75 74 69 6c 2e 67 65 74 5f 74 72 61 63 65 62 61 63 6b 28 20 65 72 72 20 29 .......util.get_traceback(.err.)
0ae0 2c 0a 20 20 20 20 20 20 20 20 29 0a 20 20 20 20 69 fe ff ff ff 73 04 00 00 00 3a 20 25 73 73 0c ,.........).....i....s....:.%ss.
0b00 00 00 00 25 73 2e 25 73 20 28 25 73 29 25 73 73 09 00 00 00 25 73 20 28 25 73 29 25 73 73 01 00 ...%s.%s.(%s)%ss....%s.(%s)%ss..
0b20 00 00 0a 74 05 00 00 00 6c 69 6d 69 74 69 0a 00 00 00 74 04 00 00 00 66 69 6c 65 4e 28 0b 00 00 ...t....limiti....t....fileN(...
0b40 00 74 04 00 00 00 4e 6f 6e 65 74 09 00 00 00 74 72 61 63 65 62 61 63 6b 74 0d 00 00 00 65 78 74 .t....Nonet....tracebackt....ext
0b60 72 61 63 74 5f 73 74 61 63 6b 74 06 00 00 00 61 70 70 65 6e 64 52 0e 00 00 00 74 03 00 00 00 73 ract_stackt....appendR....t....s
0b80 74 72 74 09 00 00 00 63 53 74 72 69 6e 67 49 4f 74 08 00 00 00 53 74 72 69 6e 67 49 4f 74 09 00 trt....cStringIOt....StringIOt..
0ba0 00 00 70 72 69 6e 74 5f 65 78 63 74 08 00 00 00 67 65 74 76 61 6c 75 65 74 05 00 00 00 63 6c 6f ..print_exct....getvaluet....clo
0bc0 73 65 28 07 00 00 00 74 05 00 00 00 65 72 72 6f 72 74 01 00 00 00 66 74 01 00 00 00 6c 74 04 00 se(....t....errort....ft....lt..
0be0 00 00 66 75 6e 63 74 09 00 00 00 73 74 61 74 65 6d 65 6e 74 74 09 00 00 00 65 78 63 65 70 74 69 ..funct....statementt....excepti
0c00 6f 6e 52 14 00 00 00 28 00 00 00 00 28 00 00 00 00 73 42 00 00 00 2f 68 6f 6d 65 2f 79 61 64 65 onR....(....(....sB.../home/yade
0c20 72 2f 41 63 74 69 76 69 74 69 65 73 2f 43 6f 6e 6f 7a 63 6f 4e 69 63 61 72 61 67 75 61 2e 61 63 r/Activities/ConozcoNicaragua.ac
0c40 74 69 76 69 74 79 2f 6f 6c 70 63 67 61 6d 65 73 2f 75 74 69 6c 2e 70 79 74 0d 00 00 00 67 65 74 tivity/olpcgames/util.pyt....get
0c60 5f 74 72 61 63 65 62 61 63 6b 2d 00 00 00 73 20 00 00 00 00 10 0c 01 06 01 23 01 06 01 10 01 06 _traceback-...s..........#......
0c80 01 20 02 1e 01 0d 02 0c 01 0c 01 03 01 16 01 10 02 0b 01 28 12 00 00 00 74 07 00 00 00 5f 5f 64 ...................(....t....__d
0ca0 6f 63 5f 5f 52 16 00 00 00 52 1a 00 00 00 74 07 00 00 00 6c 6f 67 67 69 6e 67 74 09 00 00 00 67 oc__R....R....t....loggingt....g
0cc0 65 74 4c 6f 67 67 65 72 52 03 00 00 00 52 06 00 00 00 74 07 00 00 00 6f 73 2e 70 61 74 68 52 0c etLoggerR....R....t....os.pathR.
0ce0 00 00 00 74 17 00 00 00 73 75 67 61 72 2e 61 63 74 69 76 69 74 79 2e 61 63 74 69 76 69 74 79 52 ...t....sugar.activity.activityR
0d00 00 00 00 00 52 01 00 00 00 74 0b 00 00 00 49 6d 70 6f 72 74 45 72 72 6f 72 52 04 00 00 00 52 0a ....R....t....ImportErrorR....R.
0d20 00 00 00 52 10 00 00 00 52 12 00 00 00 52 25 00 00 00 28 00 00 00 00 28 00 00 00 00 28 00 00 00 ...R....R....R%...(....(....(...
0d40 00 73 42 00 00 00 2f 68 6f 6d 65 2f 79 61 64 65 72 2f 41 63 74 69 76 69 74 69 65 73 2f 43 6f 6e .sB.../home/yader/Activities/Con
0d60 6f 7a 63 6f 4e 69 63 61 72 61 67 75 61 2e 61 63 74 69 76 69 74 79 2f 6f 6c 70 63 67 61 6d 65 73 ozcoNicaragua.activity/olpcgames
0d80 2f 75 74 69 6c 2e 70 79 74 08 00 00 00 3c 6d 6f 64 75 6c 65 3e 01 00 00 00 73 20 00 00 00 06 01 /util.pyt....<module>....s......
0da0 18 01 0c 01 0f 01 0c 01 0c 02 06 02 03 01 10 01 0d 07 0d 01 0d 01 0d 05 09 0c 09 03 09 04 ..............................