Commits

unknown  committed 13851b5

Fix path to be portable, e.g. generate sensible Windows paths for config file.
Also displays config file to use.

  • Participants
  • Parent commits 3084009

Comments (0)

Files changed (1)

File poachplatelib/package.py

 version : 0.0.1
 """
 
-CONFIG_LOC = os.path.expanduser('~/.config/poachplate.ini')
+CONFIG_LOC = os.path.join(os.path.expanduser('~'), '.config', 'poachplate.ini')
 YEAR = datetime.date.today().strftime('%Y')
 
 
     opt, args = parser.parse_args(prog_args)
 
     if len(sys.argv) > 1:
+        print 'attempting to use config file %s' % CONFIG_LOC
         p = Package(sys.argv[1], opt=opt, cfg_loc=CONFIG_LOC)
         p.generate()
     else: