Skip to content

Commit

Permalink
If folder name is given as command-line argument, try to use it as DF…
Browse files Browse the repository at this point in the history
… folder
  • Loading branch information
Pidgeot committed Nov 5, 2014
1 parent a5ea8fd commit c682c5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/df.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def find_df_folder():
find_df_folders()
if len(lnp.folders) == 1:
set_df_folder(lnp.folders[0])
if len(sys.argv) > 1 and sys.argv[1] in lnp.folders:
set_df_folder(sys.argv[1])

def set_df_folder(path):
"""
Expand Down

0 comments on commit c682c5b

Please sign in to comment.