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...
-
Did you try running that command from the Python console? It should be run from the command prompt.user2134086– user21340862013年07月22日 13:09:39 +00:00Commented Jul 22, 2013 at 13:09
-
1The $ is part of commonly used Unix prompts. You should leave it off.Chris Wesseling– Chris Wesseling2013年07月22日 13:27:01 +00:00Commented Jul 22, 2013 at 13:27
1 Answer 1
Have you installed the Python?
- Install
Python, choose any version you like:x64orx86. - Add
PythontoPATH:- Hold Win and press Pause.
- Click
Advanced System Settings. - Click
Environment Variables. - Append
;C:\Python33to thePATHvariable.
- Restart the
cmd.exeorPowershell. - Try running
python bootstrap_namespace_prefixer.py c:\bootstrap.
answered Jul 22, 2013 at 13:10
m0nhawk
24.6k9 gold badges50 silver badges74 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
Ireek
Yep, did that. Actually got the answer - I used the $ prefix before python.
lang-py