Skip to content

Commit 3181e4e

Browse files
author
arch
committed
include docs in src dir
1 parent 51dc3e9 commit 3181e4e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

funscript_editor/definitions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
elif os.path.exists(os.path.join(ROOT_DIR, '..', 'usr', 'share', os.path.basename(ROOT_DIR), 'docs')):
2525
APP_DOCUMENTATION_DIR = os.path.join(ROOT_DIR, '..', 'usr', 'share', os.path.basename(ROOT_DIR), 'docs', 'app', 'site')
2626
CODE_DOCUMENTATION_DIR = os.path.join(ROOT_DIR, '..', 'usr', 'share', os.path.basename(ROOT_DIR), 'docs', 'code', '_build', 'html')
27+
elif os.path.exists(os.path.join(ROOT_DIR, 'docs', 'app', 'site')):
28+
APP_DOCUMENTATION_DIR = os.path.join(ROOT_DIR, 'docs', 'app', 'site')
29+
CODE_DOCUMENTATION_DIR = os.path.join(ROOT_DIR, 'docs', 'code', '_build', 'html')
2730
elif os.path.exists(os.path.join(ROOT_DIR, 'docs')):
2831
APP_DOCUMENTATION_DIR = os.path.join(ROOT_DIR, 'docs')
2932
CODE_DOCUMENTATION_DIR = '' # code documentation not included

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
install_requires=requirements,
6262
packages=[PACKAGE],
6363
package_data={PACKAGE: src},
64-
data_files=[(os.path.join(sys.prefix, 'share', PACKAGE, os.path.dirname(x)), [x]) for x in docs],
64+
data_files=[(os.path.join('/', PACKAGE, os.path.dirname(x)), [x]) for x in docs],
6565
python_requires=">=3.6",
6666
setup_requires=['wheel', 'gitpython'],
6767
)

0 commit comments

Comments
 (0)