Command line tool in python in a fixed root directory -


I would like to install my dragon application as a command line tool that should work inside the fully installed directory (for example C:

Thank you

Not sure that this is what you are doing but This can be done by doing this.

  import os dir_of_current_module = os.path.dirname (__ file__)  

Once you know the deer, you have to do it chdir () Or what you want. Remember: you are not always allowed to give up stuff.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -