Skip to content

Instantly share code, notes, and snippets.

@skial
Last active August 29, 2015 14:21
Show Gist options
  • Save skial/4c0f847dbf454f4ba605 to your computer and use it in GitHub Desktop.
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/
-python Main.py
-main Main
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' ) );
}
}
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