Skip to content
This repository was archived by the owner on Jul 19, 2018. It is now read-only.

Commit

Permalink
don't assume setup.py is run from its directory
Browse files Browse the repository at this point in the history
when looking for the path to the regexes.yaml file, look relative to the
top directory containing setup.py, but don't assume it's the current
directory.
  • Loading branch information
David Bonner committed Apr 22, 2013
1 parent ba83ed9 commit fc7d7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def run(self):
print 'Copying regexes.yaml to package directory...'
import os
import shutil
cwd = os.path.abspath('.')
cwd = os.path.abspath(os.path.dirname(__file__))
yaml_src = os.path.join(cwd, 'regexes.yaml')
yaml_dest = os.path.join(cwd, 'py', 'ua_parser', 'regexes.yaml')
shutil.copy(yaml_src, yaml_dest)
Expand Down

0 comments on commit fc7d7d5

Please sign in to comment.