Ireek
Ireek

Reputation: 45

Python 3.3.2 - how to run script on Windows

I have nothing to do with Python, just needed it for one script from Adding a prefix to Bootstrap CSS classes. In "how-to" author instruct to call the script in this way:

$python bootstrap_namespace_prefixer.py /path/to/boostrap/dir

so in command line I have typed

$python bootstrap_namespace_prefixer.py c:\bootstrap

which is giving me an error

File "", line 1
$python bootstrap_namespace_prefixer.py c:\bootstrap
^
SyntaxError: invalid syntax

Here is the link to script on github As I said I'm not Python programmer, just need this script to help me in my work, but have no idea what I am doing wrong...

Upvotes: 2

Views: 917

Answers (1)

m0nhawk
m0nhawk

Reputation: 24238

Have you installed the Python?

  • Install Python, choose any version you like: x64 or x86.
  • Add Python to PATH:
    • Hold Win and press Pause.
    • Click Advanced System Settings.
    • Click Environment Variables.
    • Append ;C:\Python33 to the PATH variable.
  • Restart the cmd.exe or Powershell.
  • Try running python bootstrap_namespace_prefixer.py c:\bootstrap.

Upvotes: 1

Related Questions