2

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...

2
  • Did you try running that command from the Python console? It should be run from the command prompt. Commented Jul 22, 2013 at 13:09
  • 1
    The $ is part of commonly used Unix prompts. You should leave it off. Commented Jul 22, 2013 at 13:27

1 Answer 1

1

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.
Sign up to request clarification or add additional context in comments.

1 Comment

Yep, did that. Actually got the answer - I used the $ prefix before python.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.