Skip to content

Commit

Permalink
add config dir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MialLewis committed Nov 10, 2023
1 parent 9aa4dfb commit 3de46ad
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions EVSVesuvio/scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
"""Package defining top-level application
and entry points.
"""
import os
from shutil import copyfile


def main():
"""Placeholder.
"""
print("TEST_VESUVIO_LAUNCH")
make_config_dir()


def make_config_dir():
config_dir = os.path.join(os.path.expanduser("~"), '.mvesuvio')
if not os.path.isdir(config_dir):
os.mkdir(config_dir)
copyfile('EVSVesuvio/config/vesuvio.user.properties', f'{config_dir}/vesuvio.user.properties')


if __name__ == '__main__':
main()

0 comments on commit 3de46ad

Please sign in to comment.