Skip to content

Commit f9d90f0

Browse files
author
Marcin Kardas
committed
Move scripts into a package
1 parent f80947d commit f9d90f0

File tree

13 files changed

+21
-14
lines changed

13 files changed

+21
-14
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include axcell/scripts/*
2+
include axcell/scripts/patches/*
File renamed without changes.

axcell/data/paper_collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ..helpers.jupyter import display_table
1212
import string
1313
import random
14-
from extract_tables import extract_tables
14+
from axcell.data.extract_tables import extract_tables
1515

1616

1717
class Paper:

axcell/helpers/latex_converter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ def rw_bind(path): return dict(bind=path, mode='rw')
2121

2222

2323
class LatexConverter:
24-
def __init__(self, base_path):
24+
def __init__(self):
2525
# pull arxivvanity/engrafo image
2626
self.client = docker.from_env()
27-
self.base_path = Path(base_path)
27+
self._scripts_path = Path(__file__).resolve().parent.parent / 'scripts'
2828

2929
def latex2html(self, source_dir, output_dir, use_named_volumes=False):
30-
base = self.base_path
30+
base = self._scripts_path
3131
source_dir = Path(source_dir)
3232
output_dir = Path(output_dir)
3333
scriptname = "/files/latex2html.sh"

axcell/mocks/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved

axcell/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)