File tree Expand file tree Collapse file tree 4 files changed +33
-2
lines changed
apps/beeware_pythonnative Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 11from beeware_pythonnative .app import main
22
3- if __name__ == ' __main__' :
3+ if __name__ == " __main__" :
44 main ().main_loop ()
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ def run_tests():
2525 # Overwrite the cache directory to somewhere writable
2626 "-o" ,
2727 f"cache_dir={ tempfile .gettempdir ()} /.pytest_cache" ,
28- ] + args
28+ ]
29+ + args
2930 )
3031
3132 print (f">>>>>>>>>> EXIT { returncode } <<<<<<<<<<" )
Original file line number Diff line number Diff line change 1+ from rubicon .java import JavaClass
2+
3+
4+ def main ():
5+ """
6+ https://github.com/beeware/rubicon-java.
7+ """
8+ URL = JavaClass ("java/net/URL" )
9+ url = URL ("https://beeware.org" )
10+ print (url .getHost ())
11+
12+
13+ if __name__ == "__main__" :
14+ main ()
Original file line number Diff line number Diff line change 1+ from rubicon .objc import ObjCClass
2+
3+
4+ def main ():
5+ """
6+ https://rubicon-objc.readthedocs.io/en/stable/tutorial/tutorial-1.html.
7+ """
8+ NSURL = ObjCClass ("NSURL" )
9+ base = NSURL .URLWithString ("https://beeware.org/" )
10+ full = NSURL .URLWithString ("contributing/" , relativeToURL = base )
11+ absolute = full .absoluteURL
12+ print (absolute .description )
13+
14+
15+ if __name__ == "__main__" :
16+ main ()
You can’t perform that action at this time.
0 commit comments