Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] python plugins for Python3

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] python plugins for Python3


Chronological Thread 
  • From: "chu-ching huang" <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] python plugins for Python3
  • Date: Tue, 30 Oct 2012 07:39:55 +0800

On Mon, 29 Oct 2012 18:25:27 +0100, Miguel de Benito Delgado wrote
> On Mon, Oct 29, 2012 at 3:58 PM, chu-ching huang
> > Yes, support both Python2 and Python would be perfect for TeXmacs users.
This new one is
> > rewritten under this condition. Tested Python versions: 2.7.3 and 3.3.
>
> What's the file "realpath.py" for? I don't see it referenced anywhere...
> ________________
Sorry, I forgot.

Best wishes,

cch
#!/usr/bin/env python
from os.path import realpath
from sys import argv,exit
import sys

py_ver = sys.version_info[0];

if len(argv)<2: exit(1)
if py_ver ==3:
  print(realpath(argv[1]))
else:
  print(realpath(argv[1])) 

Attachment: tm_python
Description: Binary data




Archive powered by MHonArc 2.6.19.

Top of Page