Portability of application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psbasha
    Contributor
    • Feb 2007
    • 440

    Portability of application

    Hi,

    Currently I am working in Python IDE2.4 and TK GUI.I would like to work on the single source which works for both UNIX and WIndows OS.So for making the application compatibility with different OS,I hope I dont need to write/modify the code for different OS.

    I have some image files or logo file which I have to create as a package/exe of the application.So this can be created similar way as we create for the simple applications

    Thanks in advance
    PSB
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by psbasha
    Hi,

    Currently I am working in Python IDE2.4 and TK GUI.I would like to work on the single source which works for both UNIX and WIndows OS.So for making the application compatibility with different OS,I hope I dont need to write/modify the code for different OS.

    I have some image files or logo file which I have to create as a package/exe of the application.So this can be created similar way as we create for the simple applications

    Thanks in advance
    PSB
    Most Python installations on *nix DO have Tk/Tkinter (some do not). Your code should run unaltered across platforms with standard Python installations.
    I've been working with py2exe (windows only) and it handles image files fairly easily. PyInstaller should also do this (*nix & Windows). Of course, if you use these utilities to pack you code into a "binary" (not actually true binary) the target machine does not need python installed on it.

    Comment

    • psbasha
      Contributor
      • Feb 2007
      • 440

      #3
      Thanks for the reply,

      The source code written for the applications developed using Python can be written in any OS,has to build and executed in the Diff OS and package it as per the OS.

      (or ) For example develop the application Windows OS (Source Code) ,build and execute in Windows OS and Package in Windows,Use this WIndows and UNIX OS.

      Develop (Source Code ) : Windows OS
      Build and Execute : Windows OS
      Package : Windows OS
      Application will Support : Windows OS or UNIX or etc

      Whether this application works in UNIX


      (or ) We have to do in this way

      Develop (Source Code ) : Windows OS
      Build and Execute : Windows OS or UNIX OS or etc ( Install Python in diff OS)
      Package : Windows OS or UNIX OS or etc
      Application will Support : Windows OS or UNIX or etc


      -PSB

      Comment

      Working...