project-navigation
Personal tools

Author Topic: map-get - bad syntax  (Read 2603 times)

Offline Kaerius

  • Rookie
  • ***
  • Posts: 85
    • View Profile
map-get - bad syntax
« on: September 05, 2009, 07:30:34 pm »
Ok... so the documentation for using map-get is non-existant, but it's apparently a python script, so I downloaded python(3.1)... still wasn't making it run, so I opened the python GUI, opened the script in it, and told it to run module... only to run into a syntax error in the script!

Code: [Select]
def run(cmd, mandatory=True):
    print cmd
    if os.system(cmd) and mandatory:
        sys.stderr.write('Faild to run: %s' % cmd)
        sys.exit(2)/code]

It says SyntaxError, invalid syntax, and highlights the "cmd" part.

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: map-get - bad syntax
« Reply #1 on: September 05, 2009, 07:36:46 pm »
Try to use python 2.6, I`m not a python-coder, but I`ve seen a note, «Python 3.1 is a continuation of the work started by Python 3.0, the new backwards-incompatible series of Python.»

Offline Kaerius

  • Rookie
  • ***
  • Posts: 85
    • View Profile
Re: map-get - bad syntax
« Reply #2 on: September 05, 2009, 07:54:17 pm »
That did it... now if I could only get ufo2map to compile...