Last active
August 29, 2015 14:21
-
-
Save skial/4c0f847dbf454f4ba605 to your computer and use it in GitHub Desktop.
Haxe 3.2.0 Python Extern Rest example used in http://haxe.io/releases/3.2.0/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-python Main.py | |
-main Main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import python.lib.os.Path; | |
class Main { | |
static function main() { | |
trace( Path.join('C:\\', 'myPath') ); | |
trace( Path.join('C:\\', 'my', 'longer', 'python', 'powered', 'path' ) ); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import path as python_lib_os_Path | |
class Main: | |
@staticmethod | |
def main(): | |
print(str(python_lib_os_Path.join("C:\\","myPath"))) | |
print(str(python_lib_os_Path.join("C:\\","my","longer","python","powered","path"))) | |
Main.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment